From ef5b161bb5ebf137bd95e4462588bb20ffbe0f79 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sun, 29 Jul 2018 21:24:42 -0700 Subject: 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. --- quantum/quantum.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'quantum/quantum.c') diff --git a/quantum/quantum.c b/quantum/quantum.c index 9c6ed3330..aad678e1a 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -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 -- cgit v1.2.3-24-g4f1b