1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Avoid RC processing when no new RC data was received.

This commit is contained in:
mikeller 2018-01-25 02:01:29 +13:00
parent a5c9833fb6
commit 8b636ff86a
3 changed files with 9 additions and 4 deletions

View file

@ -132,7 +132,10 @@ static void taskUpdateAccelerometer(timeUs_t currentTimeUs)
static void taskUpdateRxMain(timeUs_t currentTimeUs)
{
processRx(currentTimeUs);
if (!processRx(currentTimeUs)) {
return;
}
isRXDataNew = true;
#if !defined(USE_ALT_HOLD)