aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-23 01:36:30 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-23 01:36:30 +0200
commit3cb50e86ab3fcbbef32e8f524797a390e3377e34 (patch)
tree42a2a88bc501fe73bc9fb80aca7260167e4a995b /cutter.go
parente2c66620451784a6ab87e1431c7257bea9c0d8d2 (diff)
Cosmetic
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go5
1 files changed, 3 insertions, 2 deletions
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() {