From ca0fb6c9cfc27fbca6e87b678a22d3c5cc148739 Mon Sep 17 00:00:00 2001 From: Zap Andersson Date: Sat, 19 Mar 2016 13:01:53 +0100 Subject: [PATCH] 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. --- src/main/flight/failsafe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/flight/failsafe.c b/src/main/flight/failsafe.c index 5c8872fa2c..66a0a6cc39 100644 --- a/src/main/flight/failsafe.c +++ b/src/main/flight/failsafe.c @@ -172,7 +172,8 @@ void failsafeUpdateState(void) bool failsafeSwitchIsOn = IS_RC_MODE_ACTIVE(BOXFAILSAFE); 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; }