fix clock overlay display

This commit is contained in:
Woody 2024-01-25 12:14:44 +01:00
parent f4a2eec984
commit 21a9372320
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2

View File

@ -91,8 +91,9 @@ void handleOverlayDraw() {
usermods.handleOverlayDraw();
if (analogClockSolidBlack) {
const Segment* segments = strip.getSegments();
for (uint8_t i = 0; i < strip.getActiveSegmentsNum(); i++) {
for (uint8_t i = 0; i < strip.getSegmentsNum(); i++) {
const Segment& segment = segments[i];
if (!segment.isActive()) continue;
if (segment.mode > 0 || segment.colors[0] > 0) {
return;
}