Sfoglia il codice sorgente

Stop all notes on startup, if there is no song and audio is disabled to prevent continouse tone (#5173)

Drashna Jaelre 6 anni fa
parent
commit
100697ebab
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      quantum/audio/audio_arm.c

+ 2 - 0
quantum/audio/audio_arm.c

@@ -317,6 +317,8 @@ void audio_init() {
 
   if (audio_config.enable) {
     PLAY_SONG(startup_song);
+  } else {
+    stop_all_notes();
   }
 
 }