Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print correct model in print_firmware_version #3227

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading