aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-16 19:08:20 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-16 19:08:20 +0200
commitb49931990791d2cbf3679507c866272d0e5e9baf (patch)
tree006a50352952a66803b08276ecfc5b0167f87922
parentd421ff27df0ad189bbd245ec3000eea5d8030da8 (diff)
Readd upgrade/debug commands, untested
-rw-r--r--robo.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/robo.go b/robo.go
index c705020..fb1030e 100644
--- a/robo.go
+++ b/robo.go
@@ -227,3 +227,13 @@ const (
)
func (d Direction) Step(c *bufio.Writer) { esc(c, NUL, byte(d)) }
+
+// Untested
+func BootUpgrade(c *bufio.ReadWriter) string {
+ esc(c, 1)
+ return c.ReadString(' ')
+}
+func UpdateFirmware(c *bufio.ReadWriter) bool {
+ return str(c, "CC1VERUP") == string(NUL)
+}
+func EnableDebug(c *bufio.Writer) { send(c, "FP,GRFCC1") }