fix off by one error

buzzer is index 2, but loop was 0-1 so buzzer never got turned off.
This commit is contained in:
Tavis 2024-03-12 21:42:08 -10:00
parent 724fa38a55
commit 333c3c1c9e

View File

@ -81,7 +81,7 @@ int32_t ExternalNotificationModule::runOnce()
// let the song finish if we reach timeout
nagCycleCutoff = UINT32_MAX;
LOG_INFO("Turning off external notification: ");
for (int i = 0; i < 2; i++) {
for (int i = 0; i < 3; i++) {
setExternalOff(i);
externalTurnedOn[i] = 0;
LOG_INFO("%d ", i);