canRxCounter

This commit is contained in:
rusefi 2025-03-26 10:21:48 -04:00
parent 78cd715288
commit ab75532a00
1 changed files with 4 additions and 1 deletions

View File

@ -94,10 +94,12 @@ static void handleCounter(Counter *cnt, bool *isHappy, bool *eventExpected, cons
*isHappy = *isHappy && cnt->isHappy();
}
static int canRxCounter = 0;
bool checkDigitalInputCounterStatus() {
if (currentBoard == nullptr) {
setErrorLedAndRedText();
chprintf(chp, "* UNKNOWN BOARD ID [%d] while trying to check digital input event counter!\r\n", boardId);
chprintf(chp, "* UNKNOWN BOARD ID [%d] while trying to check digital input event counter! CAN RX=%d\r\n", boardId, canRxCounter);
setNormalText();
return false;
}
@ -270,6 +272,7 @@ static void printRxFrame(const CANRxFrame& frame, const char *msg) {
}
void processCanRxMessage(const CANRxFrame& frame) {
canRxCounter++;
#if 0
setGreenText();
chprintf(chp, " ************* GOT CAN %x\r\n",