Skip to content

Commit

Permalink
fix off by one error
Browse files Browse the repository at this point in the history
buzzer is index 2, but loop was 0-1 so buzzer never got turned off.
  • Loading branch information
tavdog committed Mar 13, 2024
1 parent 724fa38 commit 333c3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ExternalNotificationModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 333c3c1

Please sign in to comment.