usermod bugfixes
* rotary ALT: changing brightness did not have an effect (stateUpdated missing) * four-line-display ALT: allow clockmode without NTP (network time) - there are other possible time sources, like RTC.
This commit is contained in:
@@ -703,7 +703,7 @@ class FourLineDisplayUsermod : public Usermod {
|
||||
// and turn it back on if it changed.
|
||||
clear();
|
||||
sleepOrClock(true);
|
||||
} else if (displayTurnedOff && ntpEnabled) {
|
||||
} else if (displayTurnedOff) { // WLEDMM removed "&& ntpEnabled"
|
||||
showTime();
|
||||
}
|
||||
return;
|
||||
@@ -1058,7 +1058,7 @@ class FourLineDisplayUsermod : public Usermod {
|
||||
if (sleepEnable) {
|
||||
displayTurnedOff = true;
|
||||
//setContrast(contrastFix? 2+ contrast/4 : 0); // un-comment to dim display in "clock mode"
|
||||
if (clockMode && ntpEnabled) {
|
||||
if (clockMode) { // WLEDMM removed " && ntpEnabled"
|
||||
knownMinute = knownHour = 99;
|
||||
showTime();
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user