mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
Ensure failsafe is not reset when using stale serial rx channel data.
This commit is contained in:
parent
001cd74add
commit
1e7fb08b9d
1 changed files with 7 additions and 3 deletions
|
@ -259,9 +259,13 @@ static void processRxChannels(void)
|
||||||
|
|
||||||
bool shouldCheckPulse = true;
|
bool shouldCheckPulse = true;
|
||||||
|
|
||||||
if (feature(FEATURE_FAILSAFE) && feature(FEATURE_RX_PPM)) {
|
if (feature(FEATURE_FAILSAFE)) {
|
||||||
shouldCheckPulse = isPPMDataBeingReceived();
|
if (feature(FEATURE_RX_PPM)) {
|
||||||
resetPPMDataReceivedState();
|
shouldCheckPulse = isPPMDataBeingReceived();
|
||||||
|
resetPPMDataReceivedState();
|
||||||
|
} else {
|
||||||
|
shouldCheckPulse = !isRxDataDriven();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (chan = 0; chan < rxRuntimeConfig.channelCount; chan++) {
|
for (chan = 0; chan < rxRuntimeConfig.channelCount; chan++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue