Skip to content

Commit

Permalink
fix(core/python): print correct model in print_firmware_version
Browse files Browse the repository at this point in the history
  • Loading branch information
TychoVrahe committed Aug 22, 2023
1 parent b151a3d commit ca12761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/.changelog.d/3227.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed printing Trezor model when validating firmware image
2 changes: 1 addition & 1 deletion python/src/trezorlib/cli/firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def print_firmware_version(fw: "firmware.FirmwareType") -> None:
click.echo("Trezor One v2 firmware (1.8.0 or later)")
_print_version(fw.header.version)
elif isinstance(fw, firmware.VendorFirmware):
click.echo("Trezor T firmware image.")
click.echo(f"{fw.vendor_header.hw_model} firmware image.")
vendor = fw.vendor_header.text
vendor_version = "{}.{}".format(*fw.vendor_header.version)
click.echo(f"Vendor header from {vendor}, version {vendor_version}")
Expand Down

0 comments on commit ca12761

Please sign in to comment.