From 538a0179d173b3c74649057c026896e399a913c7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 6 May 2015 23:45:33 +0200 Subject: Rename *Digit into *Unit --- cutter.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index 15f097e..ebbd2cf 100644 --- a/cutter.go +++ b/cutter.go @@ -225,7 +225,7 @@ func (c Cutter) UnknownFE(n int) { c.Send("FE", n) } -func (c Cutter) parseDigit() Unit { +func (c Cutter) parseUnit() Unit { s, _ := c.readResponse() return ScanUnit(s) } @@ -257,7 +257,7 @@ func (c Cutter) GetCalibration() Point { // Emited after auto calibration func (c Cutter) UnknownFQ5() Unit { c.Send("FQ5") - return c.parseDigit() + return c.parseUnit() } func (c Cutter) SetCalibration(p Point) { @@ -301,7 +301,7 @@ func (c Cutter) Initialize() { func (c Cutter) Ready() bool { c.Esc(5) - return c.parseDigit() == 0 + return c.parseUnit() == 0 } func (c Cutter) Wait() { @@ -342,14 +342,14 @@ func (c Cutter) SearchMarks(p Point) bool { c.Send("TB99") c.Send("TB55,1") c.Send("TB123,", p) - return c.parseDigit() == 0 + return c.parseUnit() == 0 } func (c Cutter) ManualSearchMarks(p Point) bool { c.Send("TB99") c.Send("TB55,1") c.Send("TB23,", p) - return c.parseDigit() == 0 + return c.parseUnit() == 0 } func (c Cutter) Circle(p Point, start, end Polar) { -- cgit v1.2.3