MPM proto scan: use RTOS timers instead of polling for timeout

This commit is contained in:
Raphael Coeffic
2022-08-11 12:15:46 +02:00
committed by Raphael Coeffic
parent c413790892
commit 8f85097c90
3 changed files with 68 additions and 11 deletions
-11
View File
@@ -223,17 +223,6 @@ inline bool isBadAntennaDetected()
return false;
}
#if defined(MULTI_PROTOLIST)
// TODO: FreeRTOS timer instead...
static inline void pollMultiProtolist(uint8_t idx)
{
if ((moduleState[idx].protocol == PROTOCOL_CHANNELS_MULTIMODULE) &&
MultiRfProtocols::instance(idx)->isScanning()) {
MultiRfProtocols::instance(idx)->scanReply();
}
}
#endif
static inline void pollTelemetry(uint8_t module, const etx_module_driver_t* drv, void* ctx)
{
if (!drv || !drv->getByte || !drv->processData) return;