1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-03 08:46:05 +00:00

trezorctl: properly check firmware_present (fixes #224)

This commit is contained in:
matejcik 2019-09-17 16:05:30 +02:00
parent c5bae693e3
commit d1f36f42c0

View File

@ -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)