Skip to content

Commit

Permalink
Remove unused variable firmware_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsIrl authored and dexter93 committed Jun 16, 2024
1 parent 4516214 commit 7ded3d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ def sanity_check_qmk_firmware(self, firmware, offset=0):
if len(firmware) < 0x100:
self._on_error("Firmware is too small")
return False
firmware_valid = True
# check stack pointer is valid and that first 3 vectors have bit0 set
sp, *vecs = struct.unpack("<IIII", firmware[0:16])
if sp < 0x20000000 or sp > 0x20000800 or vecs[0] & 1 != 1 or vecs[1] & 1 != 1 or vecs[2] & 1 != 1:
Expand Down

0 comments on commit 7ded3d4

Please sign in to comment.