aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-06 23:45:33 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-06 23:45:33 +0200
commit538a0179d173b3c74649057c026896e399a913c7 (patch)
treed183e0bd040ea8748ac524cc0ad468a8e6677b17
parente7be9ee27b1919eae9d49117ac17e27bd9f450b0 (diff)
Rename *Digit into *Unit
-rw-r--r--cutter.go10
1 files changed, 5 insertions, 5 deletions
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) {