From 12af401400969a9ef862161f4dc3a5253a7a6ce8 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 2 May 2015 00:27:00 +0200 Subject: Bump timeouts --- cutter.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index 8454ab8..a1f5d09 100644 --- a/cutter.go +++ b/cutter.go @@ -90,25 +90,20 @@ func (c Cutter) TestCut() { type StepDirection byte const ( - stepEnd StepDirection = 1 << iota >> 1 + StepStop StepDirection = 1 << iota >> 1 StepDown StepUp - StepLeft StepRight + StepLeft ) -func (c Cutter) step(dir StepDirection) { +func (c Cutter) Step(dir StepDirection) { c.WriteByte(ESC) c.WriteByte(NUL) c.WriteByte(byte(dir)) c.Flush() } -func (c Cutter) Step(dir StepDirection) { - c.step(dir) - c.step(stepEnd) -} - // CR returns carret to home on same line func (c Cutter) CR() { c.WriteString("TT") -- cgit v1.2.3