fix sizeof error

This commit is contained in:
pdxlocations
2023-11-08 12:40:51 +01:00
committed by Thomas Göttgens
parent fc3200134d
commit 9f93b9ab9d
+1 -1
View File
@@ -111,7 +111,7 @@ int32_t ExternalNotificationModule::runOnce()
if (ascending) { // fade in if (ascending) { // fade in
brightnessIndex++; brightnessIndex++;
if (brightnessIndex > sizeof(brightnessValues - 1)) { if (brightnessIndex == (sizeof(brightnessValues) - 1)) {
ascending = false; ascending = false;
} }
} else { } else {