Make lcdBacklight changes work

This commit is contained in:
Stefan `Sec` Zehl 2011-08-05 19:24:58 +02:00
parent aa986a15c8
commit 07675caeb2
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,10 @@ char nickl0[FILENAMELEN];
void applyConfig(){ void applyConfig(){
if(GLOBAL(lcdcontrast)>0) if(GLOBAL(lcdcontrast)>0)
lcdSetContrast(GLOBAL(lcdcontrast)); lcdSetContrast(GLOBAL(lcdcontrast));
enableConfig(CFG_TYPE_DEVEL,GLOBAL(develmode)); if(GLOBAL(develmode))
enableConfig(CFG_TYPE_DEVEL,1);
if(isNight())
backlightSetBrightness(GLOBAL(lcdbacklight));
}; };
int saveConfig(void){ int saveConfig(void){