From 8ece448ad141f460aa9bdff0c37dfe4dba0e2d1a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 12 May 2015 15:31:15 +0200 Subject: Try to add Type1 marks --- cutter.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cutter.go') 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 } -- cgit v1.2.3