Browse Source
Added missing shutdown_user() hook (#9180)
* add missing shutdown_user()
* use reset_keyboard() from quantum
pull/9217/head
0.8.185
yulei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
8 deletions
-
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 |
|
|
|