From 6029a98414faf2619272e03891709c3db40db306 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 10 Aug 2018 15:18:34 +0200 Subject: [PATCH] debuglink: fix bug in self_test bootloader detection --- trezorlib/debuglink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezorlib/debuglink.py b/trezorlib/debuglink.py index 9847e0463..660c0c78f 100644 --- a/trezorlib/debuglink.py +++ b/trezorlib/debuglink.py @@ -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'))