Use a reference instead of segment object copy

pull/3489/head
Woody 2023-10-27 10:34:39 +02:00
rodzic 94b9455c9c
commit f4a2eec984
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 9872D7F5072789B2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;
}