Use a reference instead of segment object copy
This commit is contained in:
parent
a83002ca10
commit
436a4a9276
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user