mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
fix(core/python): print correct model in print_firmware_version
This commit is contained in:
parent
7cf3a655e5
commit
1b08be0186
1
python/.changelog.d/3227.fixed
Normal file
1
python/.changelog.d/3227.fixed
Normal file
@ -0,0 +1 @@
|
||||
Fixed printing Trezor model when validating firmware image
|
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user