We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae797f2 commit ed146adCopy full SHA for ed146ad
examples/Sparkfun_CAN-BUS_Shield/Sparkfun_CAN-BUS_Shield.ino
@@ -50,7 +50,7 @@ bool transportRead(vscp_RxMessage * const rxMsg) {
50
if (MCP2515::ERROR_OK == mcp2515.readMessage(&canMsg)) {
51
52
// Is it a extended CAN frame?
53
- if (true == canMsg.isExtendedAdrs) {
+ if (0 != ((canMsg.can_id >> 31) & 0x01)) {
54
55
unsigned char index = 0;
56
@@ -114,7 +114,7 @@ bool transportWrite(vscp_TxMessage const * const txMsg) {
114
}
115
116
// Send CAN message
117
- if (MCP2515::ERROR_OK == mcp2515.sendMessage(canMsg, 10)) {
+ if (MCP2515::ERROR_OK == mcp2515.sendMessage(canMsg)) {
118
119
// CAN message couldn't be sent, try again.
120
++retryCnt;
0 commit comments