From 03d196926b7694480e464e60f3a9977ef5cc4803 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 24 Apr 2015 03:19:47 +0200 Subject: Fix bootloader answers behaviour --- cutter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index 16f75d4..dbf5dab 100644 --- a/cutter.go +++ b/cutter.go @@ -235,11 +235,11 @@ func (c Cutter) UnknownFA() (string, error) { } // VersionUpgrade -func (c Cutter) VersionUpgrade() (string, error) { +func (c Cutter) BootVersion() (string, error) { c.WriteByte(ESC) c.WriteByte(1) c.Flush() - return c.readResponse() + return c.ReadString(' ') } // Upgrade starts update sequence -- cgit v1.2.3