From 0f04cedfee108a9b6abdff71b888482eae673b54 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 27 Jun 2024 15:28:00 -0700 Subject: [PATCH] size_t --- firmware/console/status_loop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index b52f88186a..b3a391ce8e 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -272,7 +272,7 @@ class CommunicationBlinkingTask : public PeriodicTimerController { void setAllLeds(int value) { // make sure we do not turn the critical LED off if already have // critical error by now - for (uint32_t i = 0; !hasFirmwareError() && i < sizeof(leds) / sizeof(leds[0]); i++) { + for (size_t i = 0; !hasFirmwareError() && i < efi::size(leds); i++) { leds[i]->setValue(value); } }