aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-12 15:31:15 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-12 15:31:15 +0200
commit8ece448ad141f460aa9bdff0c37dfe4dba0e2d1a (patch)
tree8efc4638d9ed4794a7cf0b0e5dea55e9c9f91bb7 /cutter.go
parentb89a07c5efff1b491560209d154f1ba57c297acd (diff)
Try to add Type1 marks
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/cutter.go b/cutter.go
index 471c702..16b35cc 100644
--- a/cutter.go
+++ b/cutter.go
@@ -359,9 +359,17 @@ func (c Cutter) TrackEnhancing(state OnOff) {
c.Send("FY", state)
}
-func (c Cutter) SearchMarks(p Point) bool {
+type MarksType int
+
+// probably wrong
+const (
+ Type1 MarksType = iota
+ Type2
+)
+
+func (c Cutter) SearchMarks(p Point, typ MarksType) bool {
c.Send("TB99")
- c.Send("TB55,1")
+ c.Send("TB55,", typ)
c.Send("TB123,", p)
return c.returnUnit() == 0
}