mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
client: fix bug with old firmware that doesn't send the "model" field
This commit is contained in:
parent
23feb24573
commit
1179bd407b
@ -200,7 +200,8 @@ class TrezorClient:
|
|||||||
def is_outdated(self):
|
def is_outdated(self):
|
||||||
if self.features.bootloader_mode:
|
if self.features.bootloader_mode:
|
||||||
return False
|
return False
|
||||||
required_version = MINIMUM_FIRMWARE_VERSION[self.features.model]
|
model = self.features.model or "1"
|
||||||
|
required_version = MINIMUM_FIRMWARE_VERSION[model]
|
||||||
return self.version < required_version
|
return self.version < required_version
|
||||||
|
|
||||||
def check_firmware_version(self, warn_only=False):
|
def check_firmware_version(self, warn_only=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user