closes Aircoookie/WLED#984
Implements option to show clock overlay only if all LEDs are solid black
This commit is contained in:
@@ -89,6 +89,15 @@ void _overlayAnalogCountdown()
|
||||
|
||||
void handleOverlayDraw() {
|
||||
usermods.handleOverlayDraw();
|
||||
if (analogClockSolidBlack) {
|
||||
Segment* segments = strip.getSegments();
|
||||
for (uint8_t i = 0; i < strip.getActiveSegmentsNum(); i++) {
|
||||
Segment segment = segments[i];
|
||||
if (segment.mode > 0 || segment.colors[0] > 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (overlayCurrent == 1) _overlayAnalogClock();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user