Skip to content

Commit 805031e

Browse files
committed
Add error messages
1 parent 3bb451d commit 805031e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hal/transport/CAN/MyTransportCAN.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ uint8_t _findCanPacketSlot() {
112112
}
113113
}
114114
_cleanSlot(slot);
115-
//log error (message dropped)
115+
CAN_DEBUG(PSTR("!CAN:RCV:SLOT=%" PRIu8 " message dropped\n"), slot);
116+
116117
return slot;
117118
}
118119

@@ -126,7 +127,7 @@ uint8_t _findCanPacketSlot(long unsigned int from,long unsigned int currentPart,
126127
}
127128
}
128129
if (slot == CAN_BUF_SIZE) {
129-
//log error. Received message id not found in buffer.
130+
CAN_DEBUG(PSTR("!CAN:RCV:proper slot not found\n"));
130131
}
131132
return slot;
132133
}

0 commit comments

Comments
 (0)