Initsensors but properly #6120

making issue obvious
This commit is contained in:
rusefillc 2024-03-02 17:43:10 -05:00
parent e277cd62a5
commit e63367e8d1
1 changed files with 5 additions and 0 deletions

View File

@ -59,9 +59,14 @@ CanListener *canListeners_head = nullptr;
void serviceCanSubscribers(const CANRxFrame &frame, efitick_t nowNt) {
CanListener *current = canListeners_head;
size_t iterationValidationCounter = 0;
while (current) {
current = current->processFrame(frame, nowNt);
if (iterationValidationCounter++ > 239) {
criticalError("forever loop canListeners_head");
return;
}
}
}