diff options
| author | Joel Challis <git@zvecr.com> | 2024-08-10 13:50:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-10 13:50:36 +0100 |
| commit | 019b6f67b2029030a664a2d7ef545b08ace8bedb (patch) | |
| tree | defd25f462bcf9698e23893319ff06f186a85595 /keyboards/nullbitsco | |
| parent | 339b820520e13ea9c21eada904a973576a7985cc (diff) | |
Remove keyboard level `QK_BOOT` implementations (#24231)
Diffstat (limited to 'keyboards/nullbitsco')
| -rw-r--r-- | keyboards/nullbitsco/tidbit/tidbit.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/keyboards/nullbitsco/tidbit/tidbit.c b/keyboards/nullbitsco/tidbit/tidbit.c index 15bc0f6a7a..0ccdda01d8 100644 --- a/keyboards/nullbitsco/tidbit/tidbit.c +++ b/keyboards/nullbitsco/tidbit/tidbit.c | |||
| @@ -92,22 +92,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||
| 92 | numlock_set = true; | 92 | numlock_set = true; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | switch (keycode) { | ||
| 96 | case QK_BOOT: | ||
| 97 | if (record->event.pressed) { | ||
| 98 | set_bitc_LED(LED_DIM); | ||
| 99 | rgblight_disable_noeeprom(); | ||
| 100 | #ifdef OLED_ENABLE | ||
| 101 | oled_off(); | ||
| 102 | #endif | ||
| 103 | bootloader_jump(); // jump to bootloader | ||
| 104 | } | ||
| 105 | return false; | ||
| 106 | |||
| 107 | default: | ||
| 108 | break; | ||
| 109 | } | ||
| 110 | |||
| 111 | return true; | 95 | return true; |
| 112 | } | 96 | } |
| 113 | 97 | ||
| @@ -121,3 +105,16 @@ void matrix_scan_kb(void) { | |||
| 121 | matrix_scan_remote_kb(); | 105 | matrix_scan_remote_kb(); |
| 122 | matrix_scan_user(); | 106 | matrix_scan_user(); |
| 123 | } | 107 | } |
| 108 | |||
| 109 | bool shutdown_kb(bool jump_to_bootloader) { | ||
| 110 | if (!shutdown_user(jump_to_bootloader)) { | ||
| 111 | return false; | ||
| 112 | } | ||
| 113 | |||
| 114 | set_bitc_LED(LED_DIM); | ||
| 115 | rgblight_disable_noeeprom(); | ||
| 116 | #ifdef OLED_ENABLE | ||
| 117 | oled_off(); | ||
| 118 | #endif | ||
| 119 | return true; | ||
| 120 | } | ||
