mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
[RX] Allow receiver driver to communicate the failsafe condition even without valid channel data
This commit is contained in:
parent
3a8c13d8f8
commit
54de3ee801
1 changed files with 5 additions and 2 deletions
|
@ -439,10 +439,13 @@ bool rxUpdateCheck(timeUs_t currentTimeUs, timeDelta_t currentDeltaTime)
|
|||
}
|
||||
|
||||
const uint8_t frameStatus = rxRuntimeConfig.rcFrameStatusFn(&rxRuntimeConfig);
|
||||
if (frameStatus & RX_FRAME_COMPLETE) {
|
||||
rxDataProcessingRequired = true;
|
||||
if (frameStatus & RX_FRAME_FAILSAFE) {
|
||||
rxIsInFailsafeMode = (frameStatus & RX_FRAME_FAILSAFE) != 0;
|
||||
rxSignalReceived = !rxIsInFailsafeMode;
|
||||
}
|
||||
|
||||
if (frameStatus & RX_FRAME_COMPLETE) {
|
||||
rxDataProcessingRequired = true;
|
||||
needRxSignalBefore = currentTimeUs + rxRuntimeConfig.rxSignalTimeout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue