fix poll_match_count

This commit is contained in:
proddy
2026-03-29 16:30:38 +02:00
parent c6c2889306
commit 3da3345683
2 changed files with 3 additions and 6 deletions

View File

@@ -215,6 +215,7 @@ class EMSbus {
// sets the flag for EMS bus connected
static void last_bus_activity(uint32_t timestamp) {
// record the first time we connected to the BUS, as this will be our uptime
if (!last_bus_activity_) {
bus_uptime_start_ = timestamp;
}
@@ -222,10 +223,6 @@ class EMSbus {
bus_connected_ = true;
}
static void poll_match_reset() {
poll_match_count_ = 0;
}
// return bus uptime in seconds
static uint32_t bus_uptime() {
if (!bus_uptime_start_) {