diff options
| author | Joel Challis | 2024-08-10 14:50:36 +0200 |
|---|---|---|
| committer | GitHub | 2024-08-10 14:50:36 +0200 |
| commit | 019b6f67b2029030a664a2d7ef545b08ace8bedb (patch) | |
| tree | defd25f462bcf9698e23893319ff06f186a85595 /keyboards/capsunlocked | |
| parent | 339b820520e13ea9c21eada904a973576a7985cc (diff) | |
Remove keyboard level `QK_BOOT` implementations (#24231)
Diffstat (limited to 'keyboards/capsunlocked')
| -rw-r--r-- | keyboards/capsunlocked/cu75/cu75.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/keyboards/capsunlocked/cu75/cu75.c b/keyboards/capsunlocked/cu75/cu75.c index 42d5f4e290..155b8958fc 100644 --- a/keyboards/capsunlocked/cu75/cu75.c +++ b/keyboards/capsunlocked/cu75/cu75.c @@ -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; } |