aboutsummaryrefslogtreecommitdiff
path: root/plot.go
diff options
context:
space:
mode:
Diffstat (limited to 'plot.go')
-rw-r--r--plot.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plot.go b/plot.go
index d939b7f..39953ba 100644
--- a/plot.go
+++ b/plot.go
@@ -2,7 +2,6 @@ package robo
import (
"fmt"
- "log"
"strings"
)
@@ -70,6 +69,9 @@ func (r Robo) Init() {
func (r Robo) Ready() bool {
r.dev.Command([]byte{5})
resp, _ := r.dev.ReadString()
- log.Printf("ready %q", resp)
return resp == "0"
}
+
+func (r Robo) GoHome() {
+ r.dev.WriteString("TT")
+}