Use a reference instead of segment object copy

This commit is contained in:
Woody 2023-10-27 10:34:39 +02:00
parent a83002ca10
commit 436a4a9276
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2

View File

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