fix sizeof error

pull/2935/head
pdxlocations 2023-11-07 21:46:18 -08:00 zatwierdzone przez Thomas Göttgens
rodzic fc3200134d
commit 9f93b9ab9d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -111,7 +111,7 @@ int32_t ExternalNotificationModule::runOnce()
if (ascending) { // fade in
brightnessIndex++;
if (brightnessIndex > sizeof(brightnessValues - 1)) {
if (brightnessIndex == (sizeof(brightnessValues) - 1)) {
ascending = false;
}
} else {