Made the beeper for "RX Lost" shut up if RX was never gained in the 1st place.

Shuts quad up when you just put it down on the ground, or just plug it into USB or whatever.
This commit is contained in:
Zap Andersson 2016-03-19 13:01:53 +01:00
parent 587ab7178a
commit ca0fb6c9cf
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ void failsafeUpdateState(void)
bool failsafeSwitchIsOn = IS_RC_MODE_ACTIVE(BOXFAILSAFE); bool failsafeSwitchIsOn = IS_RC_MODE_ACTIVE(BOXFAILSAFE);
beeperMode_e beeperMode = BEEPER_SILENCE; beeperMode_e beeperMode = BEEPER_SILENCE;
if (!receivingRxData) { // Beep RX lost only if we are not seeing data, but we have seen it in the past.
if (!receivingRxData && failsafeState.validRxDataReceivedAt) {
beeperMode = BEEPER_RX_LOST; beeperMode = BEEPER_RX_LOST;
} }