From 66b7c537c55221f00b353a942a6c1d5e51763b9e Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Sun, 1 Apr 2012 13:43:29 +0000 Subject: [PATCH] Flash lcd always on event if flash on beep is enabled (GBirkus suggestion) --- src/audio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/audio.cpp b/src/audio.cpp index f00ba2160..9893ee22f 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -122,7 +122,6 @@ bool s_haptic; void audioQueue::playNow(uint8_t tFreq, uint8_t tLen, uint8_t tPause, uint8_t tRepeat, uint8_t tHaptic, int8_t tFreqIncr) { - if(g_eeGeneral.flashBeep) g_LightOffCounter = FLASH_DURATION; toneFreq = ((s_beeper && tFreq) ? tFreq + g_eeGeneral.speakerPitch + BEEP_OFFSET : 0); // add pitch compensator toneTimeLeft = getToneLength(tLen); tonePause = tPause; @@ -160,7 +159,7 @@ void audioQueue::event(uint8_t e, uint8_t f) #if defined(HAPTIC) s_haptic = (g_eeGeneral.hapticMode>0 || (g_eeGeneral.hapticMode==0 && e>AU_MENUS) || (g_eeGeneral.hapticMode>=-1 && e<=AU_ERROR)); #endif - + if(g_eeGeneral.flashBeep) g_LightOffCounter = FLASH_DURATION; // we got an event do we need to flash the display ? if (e < AU_FRSKY_FIRST || empty()) { switch (e) { // inactivity timer alert