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:
parent
587ab7178a
commit
ca0fb6c9cf
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue