aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
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
}