projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sane SPI Flash addressing for poke date, will later convert all functions.
[goodfet]
/
client
/
GoodFET.py
diff --git
a/client/GoodFET.py
b/client/GoodFET.py
index
18a3eb1
..
7497497
100755
(executable)
--- a/
client/GoodFET.py
+++ b/
client/GoodFET.py
@@
-55,7
+55,9
@@
class GoodFET:
self.serialport.write(chr(app));
self.serialport.write(chr(verb));
self.serialport.write(chr(app));
self.serialport.write(chr(verb));
-
+
+ #print "TX %02x %02x" % (app,verb);
+
#little endian 16-bit length
self.serialport.write(chr(count&0xFF));
self.serialport.write(chr(count>>8));
#little endian 16-bit length
self.serialport.write(chr(count&0xFF));
self.serialport.write(chr(count>>8));
@@
-64,11
+66,6
@@
class GoodFET:
if count!=0:
for d in data:
self.serialport.write(chr(d));
if count!=0:
for d in data:
self.serialport.write(chr(d));
-
- #self.serialport.flushOutput();
- #self.serialport.flushInput();
-
-
if not self.besilent:
self.readcmd();
if not self.besilent:
self.readcmd();