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:
parent
a5c9833fb6
commit
8b636ff86a
3 changed files with 9 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue