Skip to content

Commit f3e7228

Browse files
committed
16f88 is 14bit yet has two fuses
1 parent f0dc9f4 commit f3e7228

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

picpro.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,9 @@ def program_id_fuses(self, id, fuses):
889889
response_ok = 'Y'
890890
response_bad = 'N' # Protocol doc doesn't give a "bad" response value.
891891
else:
892-
if (len(fuses) != 1):
893-
raise self.Invalid_Value_Error, 'Should have one fuse for 14 bit core.'
892+
# 16f88 is 14bit yet has two fuses
893+
if (len(fuses) not in [1,2]):
894+
raise self.Invalid_Value_Error, 'Should have one or two fuses for 14 bit core.'
894895
if (len(id) != 4):
895896
raise self.Invalid_Value_Error, 'Should have 4-byte ID for 14 bit core.'
896897
# Command starts with dual '0' for 14 bit

0 commit comments

Comments
 (0)