From ae229526600258563ec09c87d4d0e462e727de83 Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Mon, 14 Nov 2022 11:34:02 -0500 Subject: [PATCH] better2 --- cli/signit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/signit.py b/cli/signit.py index 4eb29b50..3074d494 100755 --- a/cli/signit.py +++ b/cli/signit.py @@ -302,7 +302,7 @@ def doit(keydir, outfn=None, build_dir='l-port/build-COLDCARD', high_water=False version = pad_to(version.encode('ascii'), 8, b'\0') # check we will have space for trailing file header - if and hw_compat & (MK_1_OK | MK_2_OK | MK_3_OK): + if hw_compat & (MK_1_OK | MK_2_OK | MK_3_OK): assert body.endswith(b'\xff'*128), 'needs 128+ padding?' hdr = header( magic_value=FW_HEADER_MAGIC,