Skip to content

Commit 0ecae7e

Browse files
authored
Bugfix for brightness factor upon save: fixes wled#4824 (wled#4827)
1 parent a24d4bc commit 0ecae7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/wled.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ void WLED::loop()
183183
bool aligned = strip.checkSegmentAlignment(); //see if old segments match old bus(ses)
184184
BusManager::removeAll();
185185
strip.finalizeInit(); // will create buses and also load default ledmap if present
186-
BusManager::setBrightness(bri); // fix re-initialised bus' brightness #4005
187186
if (aligned) strip.makeAutoSegments();
188187
else strip.fixInvalidSegments();
188+
BusManager::setBrightness(scaledBri(bri)); // fix re-initialised bus' brightness #4005 and #4824
189189
doSerializeConfig = true;
190190
}
191191
if (loadLedmap >= 0) {

0 commit comments

Comments
 (0)