parent
e277cd62a5
commit
e63367e8d1
|
@ -59,9 +59,14 @@ CanListener *canListeners_head = nullptr;
|
||||||
|
|
||||||
void serviceCanSubscribers(const CANRxFrame &frame, efitick_t nowNt) {
|
void serviceCanSubscribers(const CANRxFrame &frame, efitick_t nowNt) {
|
||||||
CanListener *current = canListeners_head;
|
CanListener *current = canListeners_head;
|
||||||
|
size_t iterationValidationCounter = 0;
|
||||||
|
|
||||||
while (current) {
|
while (current) {
|
||||||
current = current->processFrame(frame, nowNt);
|
current = current->processFrame(frame, nowNt);
|
||||||
|
if (iterationValidationCounter++ > 239) {
|
||||||
|
criticalError("forever loop canListeners_head");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue