]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/command.c
Backlight Breathing for Planck and Atomic
[qmk_firmware.git] / tmk_core / common / command.c
index 7572b959797b33de6990bab1a3ef0967f53a29a1..9edcc42a05b48fc56ad3115acd517d394f60d31f 100644 (file)
@@ -49,6 +49,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #   include "usbdrv.h"
 #endif
 
+#ifdef AUDIO_ENABLE
+    #include "audio.h"
+#endif /* AUDIO_ENABLE */
+
 
 static bool command_common(uint8_t code);
 static void command_common_help(void);
@@ -352,7 +356,12 @@ static bool command_common(uint8_t code)
         case MAGIC_KC(MAGIC_KEY_BOOTLOADER):
             clear_keyboard(); // clear to prevent stuck keys
             print("\n\nJumping to bootloader... ");
-            _delay_ms(1000);
+            #ifdef AUDIO_ENABLE
+                   stop_all_notes();
+                play_goodbye_tone();
+            #else
+                   _delay_ms(1000);
+            #endif
             bootloader_jump(); // not return
             break;