workaround for bug141

This commit is contained in:
Peter D. Gray 2022-09-15 10:32:11 -04:00
parent edf686af2d
commit 8ebd7b0073
No known key found for this signature in database
GPG Key ID: F0E6CC6AFC16CF7B

View File

@ -163,6 +163,10 @@ class TrickPinMgmt:
self.roundtrip(1, b) # expects ENOENT=2
blk = slot.blank_slots
# bug workaround: don't use slot 10, in bootrom 3.1.4 and earlier
blk &= ~(1<<10)
return [i for i in range(NUM_TRICKS) if (1<<i & blk)]
def find_empty_slots(self, qty_needed):