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 382fff7 commit b7e40ddCopy full SHA for b7e40dd
examples/CANReceiver/CANReceiver.ino
@@ -20,7 +20,7 @@ void loop() {
20
// try to parse packet
21
int packetSize = CAN.parsePacket();
22
23
- if (packetSize) {
+ if (packetSize || CAN.packetId() != -1) {
24
// received a packet
25
Serial.print("Received ");
26
src/MCP2515.cpp
@@ -442,7 +442,7 @@ void MCP2515Class::handleInterrupt()
442
return;
443
}
444
445
- while (parsePacket()) {
+ while (parsePacket() || _rxId != -1) {
446
_onReceive(available());
447
448
0 commit comments