diff options
author | yulei <yuleiz@gmail.com> | 2020-05-25 20:16:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 22:16:33 +1000 |
commit | d8f76f9e6dd76b20636f7726f98aac9c26d03aa5 (patch) | |
tree | 12289f439cbbcd49c7571cb1e896243127c6da2d /tmk_core | |
parent | 6ca00c2152831885e719a31e606bf041601a7a16 (diff) | |
download | qmk_firmware-d8f76f9e6dd76b20636f7726f98aac9c26d03aa5.tar.gz |
Added missing shutdown_user() hook (#9180)
* add missing shutdown_user()
* use reset_keyboard() from quantum
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/common/command.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index af7c83702..ee3188646 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c @@ -359,15 +359,8 @@ static bool command_common(uint8_t code) { // jump to bootloader case MAGIC_KC(MAGIC_KEY_BOOTLOADER): case MAGIC_KC(MAGIC_KEY_BOOTLOADER_ALT): - clear_keyboard(); // clear to prevent stuck keys print("\n\nJumping to bootloader... "); -#ifdef AUDIO_ENABLE - stop_all_notes(); - shutdown_user(); -#else - wait_ms(1000); -#endif - bootloader_jump(); // not return + reset_keyboard(); break; // debug toggle |