projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add Chipcon CC2500 (and alike) SPI support + web pages. RX is not working yet.
[goodfet]
/
client
/
GoodFETMCPCAN.py
diff --git
a/client/GoodFETMCPCAN.py
b/client/GoodFETMCPCAN.py
index
06047ff
..
dcb3da3
100644
(file)
--- a/
client/GoodFETMCPCAN.py
+++ b/
client/GoodFETMCPCAN.py
@@
-320,7
+320,7
@@
class GoodFETMCPCAN(GoodFETSPI):
packet['length'] = dp5 & 0x0f
#generate the data section
- for i in range(0,
length
):
+ for i in range(0,
packet['length']
):
idx = 5 + i
dbidx = 'db%d'%i
packet[dbidx] = data[idx]