From 18879a301ae2864b7345fd109728add0896a95e0 Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Sun, 1 Apr 2012 10:52:36 +0000 Subject: [PATCH] Flash lcd only on playNOW to spare battery on battery warning --- src/audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio.cpp b/src/audio.cpp index 20a3a8086..f00ba2160 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -122,6 +122,7 @@ 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; @@ -161,7 +162,6 @@ void audioQueue::event(uint8_t e, uint8_t f) #endif if (e < AU_FRSKY_FIRST || empty()) { - if(g_eeGeneral.flashBeep) g_LightOffCounter = FLASH_DURATION; switch (e) { // inactivity timer alert case AU_INACTIVITY: