From a9d3c7ba5f8ab63da9176b2a2b157621241a4620 Mon Sep 17 00:00:00 2001 From: James Bowman Date: Tue, 2 Jul 2019 05:32:58 +0800 Subject: [PATCH] Recognize size fields of 1-7 as valid. For FeRAM [#19] --- python/samples/flash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samples/flash.py b/python/samples/flash.py index 051e771..d2c7929 100644 --- a/python/samples/flash.py +++ b/python/samples/flash.py @@ -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]