projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Byte count in JEDEC info.
[goodfet]
/
client
/
goodfet.spiflash
diff --git
a/client/goodfet.spiflash
b/client/goodfet.spiflash
index
e6150e2
..
efca070
100755
(executable)
--- a/
client/goodfet.spiflash
+++ b/
client/goodfet.spiflash
@@
-56,11
+56,12
@@
if(sys.argv[1]=="test"):
if(sys.argv[1]=="info"):
data=client.SPIjedec();
if(sys.argv[1]=="info"):
data=client.SPIjedec();
- print "Ident as %s\nManufacturer: %02x %s\nType: %02x\nCapacity: %02x" % (
+ print "Ident as %s\nManufacturer: %02x %s\nType: %02x\nCapacity: %02x
(%i bytes)
" % (
client.SPIjedecstr(),
ord(data[1]),client.SPIjedecmanstr(),
ord(data[2]),
client.SPIjedecstr(),
ord(data[1]),client.SPIjedecmanstr(),
ord(data[2]),
- ord(data[3]));
+ ord(data[3]),
+ client.JEDECsize);
if(sys.argv[1]=="dump"):
f = sys.argv[2];
if(sys.argv[1]=="dump"):
f = sys.argv[2];