diff options
author | Alexsander Akers <me@a2.io> | 2022-01-27 11:12:01 -0500 |
---|---|---|
committer | Alexsander Akers <me@a2.io> | 2022-01-27 11:12:01 -0500 |
commit | a0f8e9c8bc458b0a34b34864703fd97d9835fd86 (patch) | |
tree | 0ad14a8ba36dd5440b43852a71d099c8a8a3f63e /apps | |
parent | 14e4562b7a44ab6882180b69145665d4920769ac (diff) | |
download | Sensor-Watch-a0f8e9c8bc458b0a34b34864703fd97d9835fd86.tar.gz Sensor-Watch-a0f8e9c8bc458b0a34b34864703fd97d9835fd86.tar.bz2 Sensor-Watch-a0f8e9c8bc458b0a34b34864703fd97d9835fd86.zip |
Implement buzzer methods with AudioContext API
Diffstat (limited to 'apps')
-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]); |