aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-24 00:32:40 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-24 00:32:40 +0200
commit52671eb2889eeb68762fdb1eee071675e19e0c8f (patch)
treea637431826ed838516f033e01df1fe0eea64118c /cutter.go
parent691a7aed302ccf1d174f792841aa4f1b9822a9f7 (diff)
Add update command
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")