From 8bd416c234ec6b238b09660ae35b640d3ade470b Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 2 May 2015 21:13:09 +0200 Subject: Craft ROBO, rename CR into GoHome --- cutter.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index d26d534..a565959 100644 --- a/cutter.go +++ b/cutter.go @@ -52,11 +52,12 @@ func NewCutter(io *bufio.ReadWriter, o Orientation) Cutter { c.Initialize() if !c.Ready() { fmt.Println("not ready") + time.Sleep(time.Second) } - c.CR() // Home + c.GoHome() // Home v, _ := c.Version() - fmt.Println("Craft ROBO Ver.", v) + fmt.Println(craftRobo, "Ver.", v) pen := MediaID[113] c.MediaType(pen.ID) @@ -113,8 +114,8 @@ func (c Cutter) TestCut() { c.Send("FH") } -// CR returns carret to home on same line -func (c Cutter) CR() { +// GoHome returns carret to home on same line +func (c Cutter) GoHome() { c.Send("TT") } -- cgit v1.2.3