projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed critical bug in dumpcode of Chipcon client.
[goodfet]
/
client
/
GoodFET.py
diff --git
a/client/GoodFET.py
b/client/GoodFET.py
index
7497497
..
ec65900
100755
(executable)
--- a/
client/GoodFET.py
+++ b/
client/GoodFET.py
@@
-63,9
+63,13
@@
class GoodFET:
self.serialport.write(chr(count>>8));
#print "count=%02x, len(data)=%04x" % (count,len(data));
self.serialport.write(chr(count>>8));
#print "count=%02x, len(data)=%04x" % (count,len(data));
+
if count!=0:
if count!=0:
- for d in data:
- self.serialport.write(chr(d));
+ for i in range(0,count):
+ #print "Converting %02x at %i" % (data[i],i)
+ data[i]=chr(data[i]);
+ outstr=''.join(data);
+ self.serialport.write(outstr);
if not self.besilent:
self.readcmd();
if not self.besilent:
self.readcmd();