From 9f93b9ab9d15f4a996fb7940428db5b0d63edf72 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Tue, 7 Nov 2023 21:46:18 -0800 Subject: [PATCH] fix sizeof error --- src/modules/ExternalNotificationModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ExternalNotificationModule.cpp b/src/modules/ExternalNotificationModule.cpp index 47ee94dd5..6a7641b04 100644 --- a/src/modules/ExternalNotificationModule.cpp +++ b/src/modules/ExternalNotificationModule.cpp @@ -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 {