mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-23 16:07:20 +01:00
apconfig improvements
This commit is contained in:
@@ -172,8 +172,8 @@ void setBrightness(int brightness) {
|
||||
}
|
||||
|
||||
void updateBrightnessFromConfig() {
|
||||
if (APconfig["ledbrightness"].as<int>() != 0) {
|
||||
int newbrightness = APconfig["ledbrightness"].as<int>();
|
||||
if (config.led != 0) {
|
||||
int newbrightness = config.led;
|
||||
if (newbrightness < 0) newbrightness = 0;
|
||||
if (newbrightness != maxledbrightness) {
|
||||
setBrightness(newbrightness);
|
||||
|
||||
Reference in New Issue
Block a user