Stop "playing" after 2 failed status updates

This commit is contained in:
Allen Hill
2026-06-20 20:30:52 -07:00
parent 796c868255
commit d6340d41a3
+1 -1
View File
@@ -171,7 +171,7 @@ int main() {
out, (log_t){.print = printAllFrames, .binary = printBinary});
if (err || resp->r == r_Handled) {
if (err && out == AVCLAN_getStatusFrame() &&
failedStatusReports++ > 1) {
++failedStatusReports > 1) {
failedStatusReports = 0;
AVCLAN_stopPlaying(); // Disable periodic updates if e.g. no-one's
// listening (car was turned off?)