Replace unused runtime warning beep code with autotune beep code.

This commit is contained in:
Dominic Clifton 2014-05-27 17:57:06 +01:00
parent 4c764aacf4
commit 0280e96a9a
1 changed files with 2 additions and 3 deletions

View File

@ -39,7 +39,6 @@ void buzzer(bool warn_vbat)
static uint8_t beeperOnBox;
static uint8_t warn_noGPSfix = 0;
static failsafeBuzzerWarnings_e warn_failsafe = FAILSAFE_IDLE;
static uint8_t warn_runtime = 0;
//===================== BeeperOn via rcOptions =====================
if (rcOptions[BOXBEEPERON]) { // unconditional beeper on via AUXn switch
@ -88,8 +87,8 @@ void buzzer(bool warn_vbat)
beep_code('S','S','S','M'); // beeperon
else if (warn_vbat)
beep_code('S','M','M','D');
else if (warn_runtime == 1 && f.ARMED)
beep_code('S','S','M','N'); // Runtime warning
else if (f.AUTOTUNE_MODE)
beep_code('S','M','S','M');
else if (toggleBeep > 0)
beep(50); // fast confirmation beep
else {