Merge pull request #3395 from tavdog/patch_buzzer_no_turnoff_off_by_one_error

fix off by one error
This commit is contained in:
Thomas Göttgens 2024-03-13 09:23:14 +01:00 committed by GitHub
commit fb16390205
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);