aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-03 01:41:40 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-03 01:41:40 +0200
commitdcd51d01fb60a5ea3abd61d86e86c9509bb385e1 (patch)
tree837e1403d5e06bd97f5b58a9da57a60543d08697 /cutter.go
parentae1aae235657f474eb7bec5ece5f8ee1fc8dfc8c (diff)
Search Marks
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)