]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/command.c
Converted audio play functions to *_user (#349)
[qmk_firmware.git] / tmk_core / common / command.c
index 9edcc42a05b48fc56ad3115acd517d394f60d31f..024d7c67a3334bb91977571821eaa042d4990b6e 100644 (file)
@@ -33,20 +33,21 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "led.h"
 #include "command.h"
 #include "backlight.h"
+#include "quantum.h"
 
 #ifdef MOUSEKEY_ENABLE
 #include "mousekey.h"
 #endif
 
 #ifdef PROTOCOL_PJRC
-#   include "usb_keyboard.h"
-#   ifdef EXTRAKEY_ENABLE
-#       include "usb_extra.h"
-#   endif
+       #include "usb_keyboard.h"
+               #ifdef EXTRAKEY_ENABLE
+               #include "usb_extra.h"
+       #endif
 #endif
 
 #ifdef PROTOCOL_VUSB
-#   include "usbdrv.h"
+       #include "usbdrv.h"
 #endif
 
 #ifdef AUDIO_ENABLE
@@ -358,7 +359,7 @@ static bool command_common(uint8_t code)
             print("\n\nJumping to bootloader... ");
             #ifdef AUDIO_ENABLE
                    stop_all_notes();
-                play_goodbye_tone();
+                shutdown_user();
             #else
                    _delay_ms(1000);
             #endif