LCD contrast was set before lcdInit on Taranis

This commit is contained in:
bsongis
2014-07-05 19:03:11 +02:00
parent 7d85d40f68
commit 8200164797
+3
View File
@@ -3334,6 +3334,7 @@ inline void opentxInit(OPENTX_INIT_ARGS)
#if defined(PCBTARANIS) #if defined(PCBTARANIS)
CoTickDelay(100); //200ms CoTickDelay(100); //200ms
lcdInit(); lcdInit();
lcdSetRefVolt(g_eeGeneral.contrast);
BACKLIGHT_ON(); BACKLIGHT_ON();
CoTickDelay(20); //20ms CoTickDelay(20); //20ms
Splash(); Splash();
@@ -3509,7 +3510,9 @@ int main(void)
g_menuStack[1] = menuModelSelect; g_menuStack[1] = menuModelSelect;
#endif #endif
#if !defined(PCBTARANIS)
lcdSetRefVolt(25); lcdSetRefVolt(25);
#endif
sei(); // interrupts needed for telemetryInit and eeReadAll. sei(); // interrupts needed for telemetryInit and eeReadAll.