diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2022-01-27 12:02:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 12:02:51 -0500 |
commit | d3e484dc989a6e3a040b5b1092340973d9b4e22f (patch) | |
tree | 0897cde67b16c6c3e33345b98381164499416c1a /apps | |
parent | 14e4562b7a44ab6882180b69145665d4920769ac (diff) | |
parent | cb8223217b9fbcb705677dad890b35a467a44e75 (diff) | |
download | Sensor-Watch-d3e484dc989a6e3a040b5b1092340973d9b4e22f.tar.gz Sensor-Watch-d3e484dc989a6e3a040b5b1092340973d9b4e22f.tar.bz2 Sensor-Watch-d3e484dc989a6e3a040b5b1092340973d9b4e22f.zip |
Merge pull request #45 from a2/simulator-buzzer
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]); |