From 64cf9b334b1cb2b53df34926ae1a8564180aadfc Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 2 May 2015 21:26:18 +0200 Subject: Add response parsing --- cutter.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index 71faec1..d9d07ea 100644 --- a/cutter.go +++ b/cutter.go @@ -338,14 +338,16 @@ func (c Cutter) TrackEnhancing(state OnOff) { c.Send("FY", state) } -func (c Cutter) SearchMarks(p Point) { +func (c Cutter) SearchMarks(p Point) bool { c.Send("TB99") c.Send("TB55,1") c.Send("TB123,", p) + return c.parseDigit() == 0 } -func (c Cutter) ManualSearchMarks(p Point) { +func (c Cutter) ManualSearchMarks(p Point) bool { c.Send("TB99") c.Send("TB55,1") c.Send("TB23,", p) + return c.parseDigit() == 0 } -- cgit v1.2.3