aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-02 01:20:04 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-02 01:20:04 +0200
commit33809820ebd9dd5aee23a3020f47104e5ddeb68e (patch)
tree51197dba26b6029c25e9da5719a36c929efdddb2
parentaced6a38b47a5a1274687a1150c5030afd1b0751 (diff)
Fix typo
-rw-r--r--cutter.go8
-rw-r--r--testpattern.go2
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)