aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-02 21:26:18 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-02 21:26:18 +0200
commit64cf9b334b1cb2b53df34926ae1a8564180aadfc (patch)
tree738e705f00837fb472d0f15976df705fc4ded8a6
parent92fdda1865ea405df00416566943034d7e974888 (diff)
Add response parsing
-rw-r--r--cutter.go6
1 files changed, 4 insertions, 2 deletions
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
}