mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-20 04:05:10 +00:00
Fix Audio code when resetting keyboard
I incorrectly disabled a bunch of code that shouldn't have been disabled. This should only disable music mode stuff, not general audio.
This commit is contained in:
parent
23d68d0ba1
commit
ef5b161bb5
1 changed files with 5 additions and 3 deletions
|
@ -147,8 +147,10 @@ void reset_keyboard(void) {
|
|||
#if defined(MIDI_ENABLE) && defined(MIDI_BASIC)
|
||||
process_midi_all_notes_off();
|
||||
#endif
|
||||
#if defined(AUDIO_ENABLE) && !defined(NO_MUSIC_MODE)
|
||||
music_all_notes_off();
|
||||
#ifdef AUDIO_ENABLE
|
||||
#ifndef NO_MUSIC_MODE
|
||||
music_all_notes_off();
|
||||
#endif
|
||||
uint16_t timer_start = timer_read();
|
||||
PLAY_SONG(goodbye_song);
|
||||
shutdown_user();
|
||||
|
@ -931,7 +933,7 @@ uint8_t rgb_matrix_task_counter = 0;
|
|||
#endif
|
||||
|
||||
void matrix_scan_quantum() {
|
||||
#if defined(AUDIO_ENABLE)
|
||||
#if defined(AUDIO_ENABLE) && !defined(NO_MUSIC_MODE)
|
||||
matrix_scan_music();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue