projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed critical Apimote bug, which prevented the firmware from building using some...
[goodfet]
/
client
/
GoodFETMCPCAN.py
diff --git
a/client/GoodFETMCPCAN.py
b/client/GoodFETMCPCAN.py
index
1b8a5fd
..
0441ecb
100644
(file)
--- a/
client/GoodFETMCPCAN.py
+++ b/
client/GoodFETMCPCAN.py
@@
-28,6
+28,10
@@
class GoodFETMCPCAN(GoodFETSPI):
# mode.
self.MCPreqstatConfiguration();
# mode.
self.MCPreqstatConfiguration();
+ # If we don't enable promiscous mode, we'll miss a lot of
+ # packets. It can be manually disabled later.
+ self.poke8(0x60,0xFF); #TODO Does this have any unpleasant side effects?
+
# Now we need to set the timing registers. See chapter 5 of
# the MCP2515 datasheet to get some clue as to how this
# arithmetic of this works, as my comments here will likely be
# Now we need to set the timing registers. See chapter 5 of
# the MCP2515 datasheet to get some clue as to how this
# arithmetic of this works, as my comments here will likely be