Issue 123 fixed

This commit is contained in:
bsongis
2012-08-31 12:04:31 +00:00
parent 97f3d832ac
commit 57f4a5ff97
4 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -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;
+4
View File
@@ -1032,3 +1032,7 @@ void refreshDisplay()
}
#endif
void lcdSetContrast()
{
lcdSetRefVolt(g_eeGeneral.contrast);
}
+1
View File
@@ -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
View File
@@ -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)