diff --git a/src/general_menus.cpp b/src/general_menus.cpp index 3295561d4..923bc6ad5 100644 --- a/src/general_menus.cpp +++ b/src/general_menus.cpp @@ -307,7 +307,7 @@ void menuProcSetup(uint8_t event) lcd_outdezAtt(GENERAL_PARAM_OFS,y,g_eeGeneral.contrast, attr|LEFT); if(attr) { CHECK_INCDEC_GENVAR(event, g_eeGeneral.contrast, 10, 45); - lcdSetRefVolt(g_eeGeneral.contrast); + lcdSetContrast(); } break; diff --git a/src/lcd.cpp b/src/lcd.cpp index 593ae60be..aacb1f1fa 100644 --- a/src/lcd.cpp +++ b/src/lcd.cpp @@ -1032,3 +1032,7 @@ void refreshDisplay() } #endif +void lcdSetContrast() +{ + lcdSetRefVolt(g_eeGeneral.contrast); +} diff --git a/src/lcd.h b/src/lcd.h index 30723516d..5ae2b63a9 100644 --- a/src/lcd.h +++ b/src/lcd.h @@ -166,6 +166,7 @@ extern void lcd_img(uint8_t x, uint8_t y, const pm_uchar * img, uint8_t idx, uin extern void lcdSetRefVolt(unsigned char val); extern void lcd_init(); extern void lcd_clear(); +extern void lcdSetContrast(); extern void refreshDisplay(); diff --git a/src/open9x.cpp b/src/open9x.cpp index 33d1b08b0..87e13ac09 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -954,7 +954,11 @@ void checkBacklight() BACKLIGHT_OFF; #if defined(PCBSTD) && defined(VOICE) - Voice.voice_process(); + static uint8_t tmr10ms ; + if (tmr10ms != g_blinkTmr10ms) { + tmr10ms = g_blinkTmr10ms ; + Voice.voice_process() ; + } #endif } @@ -981,7 +985,7 @@ void doSplash() AUDIO_TADA(); #if defined(PCBSTD) - lcdSetRefVolt(g_eeGeneral.contrast); + lcdSetContrast(); #else tmr10ms_t curTime = get_tmr10ms() + 10; uint8_t contrast = 10; @@ -1171,7 +1175,7 @@ void message(const pm_char *title, const pm_char *t, const char *last MESSAGE_SO AUDIO_ERROR_MESSAGE(sound); } refreshDisplay(); - lcdSetRefVolt(g_eeGeneral.contrast); + lcdSetContrast(); clearKeyEvents(); } @@ -3151,7 +3155,7 @@ inline void open9xInit(OPEN9X_INIT_ARGS) } #endif - lcdSetRefVolt(g_eeGeneral.contrast); + lcdSetContrast(); backlightOn(); #if defined(PCBARM)