mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Add 'WAS_EVER_ARMED' arming flag
This commit is contained in:
parent
ca0fb6c9cf
commit
c0e01e8d2b
3 changed files with 5 additions and 3 deletions
|
@ -172,8 +172,8 @@ void failsafeUpdateState(void)
|
|||
bool failsafeSwitchIsOn = IS_RC_MODE_ACTIVE(BOXFAILSAFE);
|
||||
beeperMode_e beeperMode = BEEPER_SILENCE;
|
||||
|
||||
// Beep RX lost only if we are not seeing data, but we have seen it in the past.
|
||||
if (!receivingRxData && failsafeState.validRxDataReceivedAt) {
|
||||
// Beep RX lost only if we are not seeing data and we have been armed earlier
|
||||
if (!receivingRxData && ARMING_FLAG(WAS_EVER_ARMED)) {
|
||||
beeperMode = BEEPER_RX_LOST;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue