mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 18:49:07 +00:00
fix(core): displayed pairing code will always have 6-digits (added leading zeroes)
[no changelog]
This commit is contained in:
parent
f7b0a03459
commit
7e18254a3c
@ -52,7 +52,7 @@ class PairingDisplayData:
|
||||
|
||||
def _get_code_code_entry_str(self) -> str:
|
||||
if self.code_code_entry is not None:
|
||||
code_str = str(self.code_code_entry)
|
||||
code_str = f"{self.code_code_entry:06}"
|
||||
print("code_code_entry:", code_str)
|
||||
|
||||
return code_str[:3] + " " + code_str[3:]
|
||||
|
Loading…
Reference in New Issue
Block a user