This commit is contained in:
Matthew Kennedy 2024-06-27 15:28:00 -07:00
parent f2399ede73
commit 0f04cedfee
1 changed files with 1 additions and 1 deletions

View File

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