diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2016-09-25 14:30:18 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2016-09-25 14:30:18 +0200 |
commit | 91489f1134568813fd5fac1e651d21cfd91e4ccd (patch) | |
tree | 23ed18304426d6f64a0e781b0b2315e56e4ecc9d /robo.go | |
parent | df0f1c3f0ca7264c44012ac657d1f7168f864965 (diff) |
wip
Diffstat (limited to 'robo.go')
-rw-r--r-- | robo.go | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -3,14 +3,6 @@ package robo import ( "bufio" "fmt" - "io" -) - -const ( - NUL = 0x00 // Null - ETX = 0x03 // End of Text - ESC = 0x1B // Escape - FS = 0x1C // File Separator ) func etx(c *bufio.Writer) { @@ -154,11 +146,13 @@ func str(c *bufio.ReadWriter, cmd string) string { return recv(c.Reader) } +/* func Version(c io.Writer) string { io.WriteString(c, "FG") //return str(c, "FG") return "" } +*/ //func Version(c *bufio.ReadWriter) string { return str(c, "FG") } func StatusWord(c *bufio.ReadWriter) string { return str(c, "@") } @@ -193,7 +187,7 @@ func Initialize(c *bufio.ReadWriter, mid int, o Orientation) { } GoHome(c.Writer) - fmt.Println("Craft ROBO Ver.", Version(c)) + //fmt.Println("Craft ROBO Ver.", Version(c)) if pen, ok := MediaID[mid]; ok { pen.Apply(c.Writer) |