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:
@@ -526,7 +526,10 @@ public:
|
||||
}
|
||||
display->updateRedrawTime();
|
||||
#endif
|
||||
bri = max(min((increase ? bri+fadeAmount : bri-fadeAmount), 255), 0);
|
||||
byte lastBri = bri;
|
||||
if (bri < 40) bri = max(min((increase ? bri+fadeAmount/2 : bri-fadeAmount/2), 255), 0); // WLEDMM slower steps when brightness < 16%
|
||||
else bri = max(min((increase ? bri+fadeAmount : bri-fadeAmount), 255), 0);
|
||||
if (lastBri != bri) stateChanged = true; // WLEDMM bugfix
|
||||
lampUdated();
|
||||
#ifdef USERMOD_FOUR_LINE_DISPLAY
|
||||
if (display->canDraw()) // only draw if nothing else is drawing
|
||||
|
||||
Reference in New Issue
Block a user