mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 03:00:56 +00:00
fix sizeof error
This commit is contained in:
committed by
Thomas Göttgens
parent
fc3200134d
commit
9f93b9ab9d
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user