Longan-Labs / Arduino_CAN_BUS_MCP2515

Arduino CAN Bus library, MCP2515/MCP2551
https://www.longan-labs.cc/
MIT License
118 stars 371 forks source link

Dual_CAN.ino error? #11

Open radioelf opened 7 years ago

radioelf commented 7 years ago

Hi. error: 'AA' was not declared in this scope byte txBuf0[] = {AA,55,AA,55,AA,55,AA,55}; byte txBuf1[] = {55,AA,55,AA,55,AA,55,AA}; changed to: byte txBuf0[] = {0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55}; byte txBuf1[] = {0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA};

error: 'tx0Buf' was not declared in this scope CAN0.sendMsgBuf(0x1000000, 1, 8, tx0Buf); CAN1.sendMsgBuf(0x1000001, 1, 8, tx1Buf); changed to: CAN0.sendMsgBuf(0x1000000, 1, 8, txBuf0); CAN1.sendMsgBuf(0x1000001, 1, 8, txBuf1);