fix: Reset proto scan software timer to MULTI_PROTOLIST_START_TIMEOUT (#3763)

reset proto scan software timer to MULTI_PROTOLIST_START_TIMEOUT if timer already exists (from previous scan)
This commit is contained in:
Michael
2023-07-10 20:29:34 +10:00
committed by GitHub
parent 2dd76d0964
commit ec5ab0b87c
+6
View File
@@ -233,6 +233,12 @@ bool MultiRfProtocols::triggerScan()
scanTimer->timer = xTimerCreateStatic(
"MPM", MULTI_PROTOLIST_START_TIMEOUT / RTOS_MS_PER_TICK, pdTRUE,
(void*)moduleIdx, MultiRfProtocols::timerCb, &scanTimer->timerBuffer);
} else {
if (xTimerChangePeriod(scanTimer->timer,
MULTI_PROTOLIST_START_TIMEOUT / RTOS_MS_PER_TICK,
0) != pdPASS) {
/* The timer period could not be reset. */
}
}
if (scanTimer->timer) {