Remove keyboard level QK_BOOT implementations (#24231)

This commit is contained in:
Joel Challis
2024-08-10 13:50:36 +01:00
committed by GitHub
parent 339b820520
commit 019b6f67b2
9 changed files with 63 additions and 82 deletions

View File

@@ -54,17 +54,19 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
if (click_toggle && record->event.pressed){
click(click_hz, click_time);
}
if (keycode == QK_BOOT) {
reset_keyboard_kb();
}
return process_record_user(keycode, record);
}
void reset_keyboard_kb(void){
bool shutdown_kb(bool jump_to_bootloader) {
#ifdef WATCHDOG_ENABLE
// Unconditionally run so shutdown_user can't mess up watchdog
MCUSR = 0;
wdt_disable();
wdt_reset();
#endif
reset_keyboard();
if (!shutdown_user(jump_to_bootloader)) {
return false;
}
return true;
}