#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();
wait_ms(1);
stop_all_notes();
#else
+ shutdown_user();
wait_ms(250);
#endif
// this is also done later in bootloader.c - not sure if it's neccesary here
#endif
void matrix_scan_quantum() {
- #if defined(AUDIO_ENABLE)
+ #if defined(AUDIO_ENABLE) && !defined(NO_MUSIC_MODE)
matrix_scan_music();
#endif