Minor fixes of firmware_update

pull/1/head
slush0 9 years ago
parent 4ffadc2216
commit 2f2ffd5239

@ -226,11 +226,13 @@ class Commands(object):
fp.write(binascii.unhexlify(fp_old.read()))
fp_old.close()
fp.seek(0)
fp.seek(0)
if fp.read(4) != 'TRZR':
raise Exception("Trezor firmware header expected")
print "Please confirm action on device..."
fp.seek(0)
return self.client.firmware_update(fp=fp)

Loading…
Cancel
Save