I tried to read the can buf during the interrupt like:
[code]
void MCP2515_ISR() {
while (CAN_MSGAVAIL == CAN.checkReceive()) {
CAN.readMsgBuf(&len, buf);
for (int i = 0; i < len; i++) {
Serial.print(buf[i]); Serial.print("\t");
}
Serial.println();
}
}
void loop() {
}
[/code]
but I get no data. Is there a reason way I can not read the buffer like this?