diff --git a/src/main/fc/tasks.c b/src/main/fc/tasks.c index 025e58311..457ccc2e3 100644 --- a/src/main/fc/tasks.c +++ b/src/main/fc/tasks.c @@ -160,11 +160,12 @@ static void taskUpdateAccelerometer(timeUs_t currentTimeUs) static void taskUpdateRxMain(timeUs_t currentTimeUs) { + static timeUs_t lastRxTimeUs; + if (!processRx(currentTimeUs)) { return; } - static timeUs_t lastRxTimeUs; currentRxRefreshRate = constrain(currentTimeUs - lastRxTimeUs, 1000, 30000); lastRxTimeUs = currentTimeUs; isRXDataNew = true;