diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-02-14 23:29:07 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-02-14 23:29:07 +0100 |
commit | 96c91beb9fe3ad5f2f140e6fcaa9dd68115d0e82 (patch) | |
tree | 7293dbb842b501f0dfd097bb13d89beb25937f1f /song.c | |
parent | 34c237e079e68fc5621519703b66659b96fd68b6 (diff) | |
download | tmk7637-96c91beb9fe3ad5f2f140e6fcaa9dd68115d0e82.tar.gz |
deactivate buzzer before starting song
it could be active at the time of the function call due to the keyclick mode
Diffstat (limited to 'song.c')
-rw-r--r-- | song.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |