Skip to content

Commit

Permalink
Recognize size fields of 1-7 as valid. For FeRAM
Browse files Browse the repository at this point in the history
[#19]
  • Loading branch information
jamesbowman committed Jul 1, 2019
1 parent 0628bd2 commit a9d3c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/samples/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def read(a):
print("Got JEDEC ID: %02x %02x %02x" % ids)
if size > 0:
break
if ids[0] not in (0x00, 0xff) and (8 <= ids[2] < 22):
if ids[0] not in (0x00, 0xff) and (1 <= ids[2] < 22):
break
if size == 0:
size = 1 << ids[2]
Expand Down

0 comments on commit a9d3c7b

Please sign in to comment.