1
0
Fork 0
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:
Zap Andersson 2016-03-19 16:16:49 +01:00
parent ca0fb6c9cf
commit c0e01e8d2b
3 changed files with 5 additions and 3 deletions

View file

@ -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;
}