aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-12 00:26:29 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-12 00:26:29 +0200
commite4edf1d052ed00a1d99f86f58756926741a8337f (patch)
tree794684c31d1ac80c2ee0c5b2762c8067afef5532 /cutter.go
parent92e2bdc7676e10784a788416827eee456749c391 (diff)
Update get disctance correction
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cutter.go b/cutter.go
index fd58346..9472b96 100644
--- a/cutter.go
+++ b/cutter.go
@@ -60,7 +60,7 @@ func NewCutter(io *bufio.ReadWriter, o Orientation, rmlen Unit) Cutter {
c.UnknownFE(0)
fmt.Println("Calibration", c.GetCalibration())
- fmt.Println("FA", c.UnknownFA())
+ fmt.Println("Correction", c.DistanceCorrection())
if rmlen > 0 {
c.RegMarkLen(rmlen)
}
@@ -276,14 +276,14 @@ func (c Cutter) SetCalibration(p Point) {
}
// Arg: percent +/- 2.00% -> +/- 200
-func (c Cutter) DistanseCorrection(n int) {
+func (c Cutter) SetDistanseCorrection(n int) {
if n > 200 || n < -200 {
return
}
c.Send(c, "FB", n, ",0")
}
-func (c Cutter) UnknownFA() Point {
+func (c Cutter) DistanceCorrection() Point {
c.Send("FA")
return c.returnPoint()
}