mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-03 16:56:07 +00:00
trezorctl: properly check firmware_present (fixes #224)
This commit is contained in:
parent
c5bae693e3
commit
d1f36f42c0
@ -807,7 +807,7 @@ def firmware_update(
|
|||||||
click.echo("Dry run. Not uploading firmware to device.")
|
click.echo("Dry run. Not uploading firmware to device.")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
if f.major_version == 1 and f.firmware_present:
|
if f.major_version == 1 and f.firmware_present is not False:
|
||||||
# Trezor One does not send ButtonRequest
|
# Trezor One does not send ButtonRequest
|
||||||
click.echo("Please confirm action on your Trezor device")
|
click.echo("Please confirm action on your Trezor device")
|
||||||
return firmware.update(client, data)
|
return firmware.update(client, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user