aboutsummaryrefslogtreecommitdiff
path: root/song.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-02-14 23:29:07 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-02-14 23:29:07 +0100
commit96c91beb9fe3ad5f2f140e6fcaa9dd68115d0e82 (patch)
tree7293dbb842b501f0dfd097bb13d89beb25937f1f /song.c
parent34c237e079e68fc5621519703b66659b96fd68b6 (diff)
downloadtmk7637-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.c4
1 files changed, 4 insertions, 0 deletions
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;