From 33809820ebd9dd5aee23a3020f47104e5ddeb68e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 2 May 2015 01:20:04 +0200 Subject: Fix typo --- cutter.go | 8 ++++---- testpattern.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cutter.go b/cutter.go index a3b9cb7..11f3918 100644 --- a/cutter.go +++ b/cutter.go @@ -159,8 +159,8 @@ func (c Cutter) LineScale(n int) { c.Emit() } -func (c Cutter) Factor(p, q, r int) { - fmt.Fprintf(c, "&%v,%v,%v", p, q, r) +func (c Cutter) Factor(n int) { + fmt.Fprintf(c, "&%v,%v,%v", n, n, n) c.Emit() } @@ -248,12 +248,12 @@ func parsePoint(s string) (p Point) { func (c Cutter) RegistrationMarksLength(n int) { fmt.Fprint(c, "TB51,", n) - e.Emit() + c.Emit() } func (c Cutter) Calibrate() { fmt.Fprint(c, "TB70") - e.Emit() + c.Emit() } // Sensor position diff --git a/testpattern.go b/testpattern.go index 85d71c8..e615d57 100644 --- a/testpattern.go +++ b/testpattern.go @@ -1,7 +1,7 @@ package main func (c Cutter) TestPattern() { - c.Factor(100, 100, 100) + c.Factor(100) c.Offset(Origin) c.WriteLowerLeft(Origin) -- cgit v1.2.3