Make lcdBacklight changes work
This commit is contained in:
parent
aa986a15c8
commit
07675caeb2
|
@ -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){
|
||||||
|
|
Loading…
Reference in New Issue