aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cutter.go b/cutter.go
index d02e3f0..8ade859 100644
--- a/cutter.go
+++ b/cutter.go
@@ -352,14 +352,16 @@ func (c Cutter) TrackEnhancing(state OnOff) {
c.Send("FY", state)
}
-func (c Cutter) SearchMarks(p Point) bool {
+func (c Cutter) SearchMarks(p Point, l int) bool {
+ c.RegMarkLen(l)
c.Send("TB99")
c.Send("TB55,1")
c.Send("TB123,", p)
return c.parseDigit() == 0
}
-func (c Cutter) ManualSearchMarks(p Point) bool {
+func (c Cutter) ManualSearchMarks(p Point, l int) bool {
+ c.RegMarkLen(l)
c.Send("TB99")
c.Send("TB55,1")
c.Send("TB23,", p)