From 3cb50e86ab3fcbbef32e8f524797a390e3377e34 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 23 Apr 2015 01:36:30 +0200 Subject: Cosmetic --- cutter.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index 1c0288b..cffe0c6 100644 --- a/cutter.go +++ b/cutter.go @@ -64,7 +64,7 @@ func (c Cutter) TestCut() { type StepDirection int const ( - stepFinish StepDirection = 1 << iota >> 1 + stepEnd StepDirection = 1 << iota >> 1 StepDown StepUp StepLeft @@ -75,9 +75,10 @@ func (c Cutter) step(dir StepDirection) { fmt.Fprintf(c, "\x1e\x00%c", dir) c.Flush() } + func (c Cutter) Step(dir StepDirection) { c.step(dir) - c.step(stepFinish) + c.step(stepEnd) } func (c Cutter) Home() { -- cgit v1.2.3