summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-01-27 14:28:46 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-01-27 14:28:46 -0500
commit5fb8dabdd2b557450886fa447c081209b2a3b74d (patch)
tree694472c653ff081233db69cdfdbc393938b48f5c /apps
parent45aa04f4acda9d4e67eedef84bb2b8e87994f999 (diff)
parentd3e484dc989a6e3a040b5b1092340973d9b4e22f (diff)
downloadSensor-Watch-5fb8dabdd2b557450886fa447c081209b2a3b74d.tar.gz
Sensor-Watch-5fb8dabdd2b557450886fa447c081209b2a3b74d.tar.bz2
Sensor-Watch-5fb8dabdd2b557450886fa447c081209b2a3b74d.zip
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main
Diffstat (limited to 'apps')
-rw-r--r--apps/buzzer-test/app.c2
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]);