aboutsummaryrefslogtreecommitdiff
path: root/easteregg.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-16 18:47:15 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-16 18:47:15 +0200
commit8b10757e325f8c3247afa830fa4a456041688ade (patch)
tree3f10452787d7511a24e5f648f2e5b58b320f1f10 /easteregg.go
parent66d5d2ebec340297f9fa8e72328f564f804cf25e (diff)
Adjust easteregg, add Raw command
Diffstat (limited to 'easteregg.go')
-rw-r--r--easteregg.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/easteregg.go b/easteregg.go
index f7f5adf..64800b7 100644
--- a/easteregg.go
+++ b/easteregg.go
@@ -1,5 +1,7 @@
package robo
+import "bufio"
+
// found in firmware V2.30
var easteregg = []string{
`FU5440,4000`,
@@ -321,9 +323,6 @@ var easteregg = []string{
`FO0`,
}
-func (c Cutter) EasterEgg() {
- for _, cmd := range easteregg {
- c.Send(cmd)
- c.Wait()
- }
+func EasterEgg(c *bufio.Writer) {
+ Raw(c, easteregg)
}