diff options
Diffstat (limited to 'watch-library/simulator/watch/watch_buzzer.c')
-rw-r--r-- | watch-library/simulator/watch/watch_buzzer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/watch-library/simulator/watch/watch_buzzer.c b/watch-library/simulator/watch/watch_buzzer.c index c5191de2..1c95a96d 100644 --- a/watch-library/simulator/watch/watch_buzzer.c +++ b/watch-library/simulator/watch/watch_buzzer.c @@ -23,6 +23,7 @@ */ #include "watch_buzzer.h" +#include "watch_main_loop.h" #include <emscripten.h> @@ -97,6 +98,7 @@ void watch_buzzer_play_note(BuzzerNote note, uint16_t duration_ms) { watch_set_buzzer_period(NotePeriods[note]); watch_set_buzzer_on(); } - emscripten_sleep(duration_ms); + + main_loop_sleep(duration_ms); watch_set_buzzer_off(); } |