aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/cutter.go b/cutter.go
index 8cbb925..e6528f3 100644
--- a/cutter.go
+++ b/cutter.go
@@ -225,6 +225,20 @@ func (c Cutter) UnknownTB51() {
fmt.Fprint(c, "TB51,400")
}
+// Updater Version ???
+func (c Cutter) UpdaterVersion() (string, error) {
+ c.WriteString("\x1b\x01")
+ c.Flush()
+ return c.readResponse()
+}
+
+func (c Cutter) Update() (bool, error) {
+ c.WriteString("CC1VERUP")
+ c.Flush()
+ ans, err := c.readResponse()
+ return ans == "\x00", err
+}
+
// Initialize ???
func (c Cutter) Initialize() {
c.WriteString("\x1b\x04")