Issue 123 fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -1032,3 +1032,7 @@ void refreshDisplay()
|
||||
}
|
||||
#endif
|
||||
|
||||
void lcdSetContrast()
|
||||
{
|
||||
lcdSetRefVolt(g_eeGeneral.contrast);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
+8
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user