From 96c91beb9fe3ad5f2f140e6fcaa9dd68115d0e82 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 14 Feb 2021 23:29:07 +0100 Subject: deactivate buzzer before starting song it could be active at the time of the function call due to the keyclick mode --- song.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'song.c') diff --git a/song.c b/song.c index cd3b000..4abbb03 100644 --- a/song.c +++ b/song.c @@ -191,7 +191,9 @@ static const struct song_note song_ruinen[] PROGMEM = { void song_play_ruinen(void) { + /* could be activated due to keyclick mode */ keyclick_solenoid_set(false); + pwm_pb5_set_tone(0); uint8_t i = 0; for (long unsigned int cur_note = 0; cur_note < sizeof(song_ruinen)/sizeof(song_ruinen[0]); cur_note++) { @@ -410,7 +412,9 @@ static void song_larsen_light(int16_t pos) void song_play_kitt(void) { + /* could be activated due to keyclick mode */ keyclick_solenoid_set(false); + pwm_pb5_set_tone(0); int16_t i; -- cgit v1.2.3