Skip to content

Commit

Permalink
Ensure failsafe is not reset when using stale serial rx channel data.
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra committed Mar 15, 2015
1 parent 001cd74 commit 1e7fb08
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/rx/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,13 @@ static void processRxChannels(void)

bool shouldCheckPulse = true;

if (feature(FEATURE_FAILSAFE) && feature(FEATURE_RX_PPM)) {
shouldCheckPulse = isPPMDataBeingReceived();
resetPPMDataReceivedState();
if (feature(FEATURE_FAILSAFE)) {
if (feature(FEATURE_RX_PPM)) {
shouldCheckPulse = isPPMDataBeingReceived();
resetPPMDataReceivedState();
} else {
shouldCheckPulse = !isRxDataDriven();
}
}

for (chan = 0; chan < rxRuntimeConfig.channelCount; chan++) {
Expand Down

0 comments on commit 1e7fb08

Please sign in to comment.