1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 12:08:59 +00:00

debuglink: fix bug in self_test bootloader detection

This commit is contained in:
matejcik 2018-08-10 15:18:34 +02:00
parent 045ad85ecd
commit 6029a98414

View File

@ -218,7 +218,7 @@ def load_device_by_xprv(client, xprv, pin, passphrase_protection, label, languag
@expect(proto.Success, field="message")
def self_test(client):
if client.features.bootloader_mode is False:
if client.features.bootloader_mode is not True:
raise RuntimeError("Device must be in bootloader mode")
return client.call(proto.SelfTest(payload=b'\x00\xFF\x55\xAA\x66\x99\x33\xCCABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\x00\xFF\x55\xAA\x66\x99\x33\xCC'))