From e4edf1d052ed00a1d99f86f58756926741a8337f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 12 May 2015 00:26:29 +0200 Subject: Update get disctance correction --- cutter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cutter.go') 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() } -- cgit v1.2.3