Skip to content

Commit

Permalink
Example updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed Oct 31, 2024
1 parent ae797f2 commit ed146ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Sparkfun_CAN-BUS_Shield/Sparkfun_CAN-BUS_Shield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bool transportRead(vscp_RxMessage * const rxMsg) {
if (MCP2515::ERROR_OK == mcp2515.readMessage(&canMsg)) {

// Is it a extended CAN frame?
if (true == canMsg.isExtendedAdrs) {
if (0 != ((canMsg.can_id >> 31) & 0x01)) {

unsigned char index = 0;

Expand Down Expand Up @@ -114,7 +114,7 @@ bool transportWrite(vscp_TxMessage const * const txMsg) {
}

// Send CAN message
if (MCP2515::ERROR_OK == mcp2515.sendMessage(canMsg, 10)) {
if (MCP2515::ERROR_OK == mcp2515.sendMessage(canMsg)) {

// CAN message couldn't be sent, try again.
++retryCnt;
Expand Down

0 comments on commit ed146ad

Please sign in to comment.