From d6340d41a3e72e714e2cb2df5ca7106294c17257 Mon Sep 17 00:00:00 2001 From: Allen Hill Date: Sat, 20 Jun 2026 20:30:52 -0700 Subject: [PATCH] Stop "playing" after 2 failed status updates --- src/sniffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sniffer.c b/src/sniffer.c index 5a4e0c0..ec21720 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -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?)