aboutsummaryrefslogtreecommitdiff
path: root/easteregg.go
diff options
context:
space:
mode:
Diffstat (limited to 'easteregg.go')
-rw-r--r--easteregg.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/easteregg.go b/easteregg.go
index 232ca40..281d97d 100644
--- a/easteregg.go
+++ b/easteregg.go
@@ -1,7 +1,5 @@
package main
-import "fmt"
-
// found in firmware V2.30
var easteregg = []string{
`FU5440,4000`,
@@ -302,13 +300,8 @@ var easteregg = []string{
}
func (c Cutter) EasterEgg() {
- c.Raw(easteregg)
-}
-
-func (c Cutter) Raw(s []string) {
- for _, cmd := range s {
- fmt.Fprint(c, cmd)
- c.Emit()
+ for _, cmd := range easteregg {
+ c.Send(cmd)
c.Wait()
}
}