Skip to content

Commit

Permalink
Added missing shutdown_user() hook (qmk#9180)
Browse files Browse the repository at this point in the history
* add missing shutdown_user()

* use reset_keyboard() from quantum
  • Loading branch information
yulei authored May 25, 2020
1 parent 6ca00c2 commit d8f76f9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tmk_core/common/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8f76f9

Please sign in to comment.