projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added checksum.py command line script for verifying or appending checksums
[goodfet]
/
client
/
GoodFETCCSPI.py
diff --git
a/client/GoodFETCCSPI.py
b/client/GoodFETCCSPI.py
index
10e94be
..
8a216b3
100644
(file)
--- a/
client/GoodFETCCSPI.py
+++ b/
client/GoodFETCCSPI.py
@@
-84,7
+84,7
@@
class GoodFETCCSPI(GoodFET):
"""Write a CCSPI Register."""
data=[reg,(val>>8)&0xFF,val&0xFF];
self.writecmd(self.CCSPIAPP,0x03,len(data),data);
"""Write a CCSPI Register."""
data=[reg,(val>>8)&0xFF,val&0xFF];
self.writecmd(self.CCSPIAPP,0x03,len(data),data);
- if self.peek(reg,bytes)!=val:
+ if self.peek(reg,bytes)!=val
and reg!=0x18
:
print "Warning, failed to set r%02x=0x%04x, got %02x." %(
reg,
val,
print "Warning, failed to set r%02x=0x%04x, got %02x." %(
reg,
val,
@@
-258,8
+258,7
@@
class GoodFETCCSPI(GoodFET):
return;
def RF_autocrc(self,autocrc=1):
mdmctrl0=self.peek(0x11);
return;
def RF_autocrc(self,autocrc=1):
mdmctrl0=self.peek(0x11);
- return;
- if autocrc==1:
+ if autocrc==0:
mdmctrl0=mdmctrl0&(~0x0020);
else:
mdmctrl0=mdmctrl0|0x0020;
mdmctrl0=mdmctrl0&(~0x0020);
else:
mdmctrl0=mdmctrl0|0x0020;
@@
-295,6
+294,7
@@
class GoodFETCCSPI(GoodFET):
for foo in packet:
s="%s %02x" % (s,ord(foo));
print "#%s" % s;
for foo in packet:
s="%s %02x" % (s,ord(foo));
print "#%s" % s;
+
def printdissect(self,packet):
try:
from scapy.all import Dot15d4
def printdissect(self,packet):
try:
from scapy.all import Dot15d4