aboutsummaryrefslogtreecommitdiff
path: root/robo.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 03:03:48 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 03:03:48 +0200
commit45480ea2d167ec9107b837bf14102531521366ab (patch)
treee42b8de587cd5910518956ff2a6c46f7312f353e /robo.go
parenta546f3c9a1ca2fae052e2e73b8956a15f964e30d (diff)
LineStyle (Type)
Diffstat (limited to 'robo.go')
-rw-r--r--robo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/robo.go b/robo.go
index 2922546..3811500 100644
--- a/robo.go
+++ b/robo.go
@@ -67,7 +67,6 @@ func (u Unit) send(c *bufio.Writer, a ...interface{}) {
}
func (u Unit) Origin(c *bufio.Writer) { u.send(c, "SO") }
-func (u Unit) LineType(c *bufio.Writer) { u.send(c, "L") }
func (u Unit) LineScale(c *bufio.Writer) { u.send(c, "B") }
func (u Unit) Media(c *bufio.Writer) { u.send(c, "FW") }
func (u Unit) Speed(c *bufio.Writer) { u.send(c, "!") }
@@ -127,6 +126,8 @@ func StatusWord(c *bufio.ReadWriter) Point { return point(c, "@") }
func DistanceCorrection(c *bufio.ReadWriter) Point { return point(c, "FA") }
func (o Orientation) Orientation(c *bufio.Writer) { send(c, "FN", o) }
+func (l LineStyle) LineStyle(c *bufio.Writer) { send(c, "L", l) }
+func (p Point) LineStyle(c *bufio.Writer) { p.send(c, "L100,1,") }
func triple(c *bufio.ReadWriter, cmd string) Triple {
send(c.Writer, cmd)