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 qmk_firmware-d8f76f9e6dd76b20636f7726f98aac9c26d03aa5.zip | |
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) { | |||
| 359 | // jump to bootloader | 359 | // jump to bootloader |
| 360 | case MAGIC_KC(MAGIC_KEY_BOOTLOADER): | 360 | case MAGIC_KC(MAGIC_KEY_BOOTLOADER): |
| 361 | case MAGIC_KC(MAGIC_KEY_BOOTLOADER_ALT): | 361 | case MAGIC_KC(MAGIC_KEY_BOOTLOADER_ALT): |
| 362 | clear_keyboard(); // clear to prevent stuck keys | ||
| 363 | print("\n\nJumping to bootloader... "); | 362 | print("\n\nJumping to bootloader... "); |
| 364 | #ifdef AUDIO_ENABLE | 363 | reset_keyboard(); |
| 365 | stop_all_notes(); | ||
| 366 | shutdown_user(); | ||
| 367 | #else | ||
| 368 | wait_ms(1000); | ||
| 369 | #endif | ||
| 370 | bootloader_jump(); // not return | ||
| 371 | break; | 364 | break; |
| 372 | 365 | ||
| 373 | // debug toggle | 366 | // debug toggle |
