aboutsummaryrefslogtreecommitdiff
path: root/keyboards/lfkeyboards/lfk87
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-08-10 13:50:36 +0100
committerGitHub <[email protected]>2024-08-10 13:50:36 +0100
commit019b6f67b2029030a664a2d7ef545b08ace8bedb (patch)
treedefd25f462bcf9698e23893319ff06f186a85595 /keyboards/lfkeyboards/lfk87
parent339b820520e13ea9c21eada904a973576a7985cc (diff)
downloadqmk_firmware-019b6f67b2029030a664a2d7ef545b08ace8bedb.tar.gz
qmk_firmware-019b6f67b2029030a664a2d7ef545b08ace8bedb.zip
Remove keyboard level `QK_BOOT` implementations (#24231)
Diffstat (limited to 'keyboards/lfkeyboards/lfk87')
-rw-r--r--keyboards/lfkeyboards/lfk87/lfk87.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/keyboards/lfkeyboards/lfk87/lfk87.c b/keyboards/lfkeyboards/lfk87/lfk87.c
index e6288eb6c1..ff0a038114 100644
--- a/keyboards/lfkeyboards/lfk87/lfk87.c
+++ b/keyboards/lfkeyboards/lfk87/lfk87.c
@@ -45,17 +45,19 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
if (click_toggle && record->event.pressed){
clicking_notes(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;
}