diff options
Diffstat (limited to 'apps/buzzer-test/app.c')
-rw-r--r-- | apps/buzzer-test/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/buzzer-test/app.c b/apps/buzzer-test/app.c index 65d2356c..2946b646 100644 --- a/apps/buzzer-test/app.c +++ b/apps/buzzer-test/app.c @@ -115,7 +115,7 @@ bool app_loop(void) { 900, }; application_state.play = false; - for(size_t i = 0; i < sizeof(rains); i++) { + for(size_t i = 0, count = sizeof(rains) / sizeof(rains[0]); i < count; i++) { char buf[9] = {0}; if (rains[i] == BUZZER_NOTE_REST) { printf("rest for %d ms\n", durations[i]); |