mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 12:08:59 +00:00
fix(python): do not take legacy snapshots on PinRequest and PassphraseRequest
legacy < 1.11.0 will never answer those because PinRequest and PassphraseRequest block waiting for PinAck / PassphraseAck over wirelink and ignore debuglink
This commit is contained in:
parent
8912686a22
commit
dd770ba715
@ -462,6 +462,12 @@ class DebugLink:
|
||||
"""Differences in waiting for Global Layout objects."""
|
||||
return self.version >= (2, 8, 6)
|
||||
|
||||
@property
|
||||
def responds_to_debuglink_in_usb_tiny(self) -> bool:
|
||||
"""Whether a Trezor One can respond to DebugLinkGetState while waiting
|
||||
for a Button/Pin/Passphrase Ack."""
|
||||
return self.version >= (1, 11, 0)
|
||||
|
||||
@property
|
||||
def layout_type(self) -> LayoutType:
|
||||
assert self.model is not None
|
||||
@ -790,6 +796,9 @@ class DebugLink:
|
||||
if self.model is not models.T1B1:
|
||||
return
|
||||
|
||||
if not self.responds_to_debuglink_in_usb_tiny:
|
||||
return
|
||||
|
||||
state = self.state()
|
||||
if state.layout is not None:
|
||||
self._save_screenshot_t1(state.layout)
|
||||
|
Loading…
Reference in New Issue
Block a user