aboutsummaryrefslogtreecommitdiff
path: root/keyboards/nullbitsco/tidbit/tidbit.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2024-08-26 10:01:57 +1000
committerNick Brassel <nick@tzarc.org>2024-08-26 10:01:57 +1000
commit5d76c5280dc0aff398cdce19fa54d0e0725c418d (patch)
tree40026340f0d524a6006f18f01ef988e15d271075 /keyboards/nullbitsco/tidbit/tidbit.c
parente6a898e3eea3521d3f0497ee26937d5269d78fb7 (diff)
parent81dcf2b547bacc42bd9cf8ccaccd3d7164e69926 (diff)
Merge branch 'develop'
Diffstat (limited to 'keyboards/nullbitsco/tidbit/tidbit.c')
-rw-r--r--keyboards/nullbitsco/tidbit/tidbit.c29
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) {
numlock_set = true;
}
- switch (keycode) {
- case QK_BOOT:
- if (record->event.pressed) {
- set_bitc_LED(LED_DIM);
- rgblight_disable_noeeprom();
- #ifdef OLED_ENABLE
- oled_off();
- #endif
- bootloader_jump(); // jump to bootloader
- }
- return false;
-
- default:
- break;
- }
-
return true;
}
@@ -121,3 +105,16 @@ void matrix_scan_kb(void) {
matrix_scan_remote_kb();
matrix_scan_user();
}
+
+bool shutdown_kb(bool jump_to_bootloader) {
+ if (!shutdown_user(jump_to_bootloader)) {
+ return false;
+ }
+
+ set_bitc_LED(LED_DIM);
+ rgblight_disable_noeeprom();
+#ifdef OLED_ENABLE
+ oled_off();
+#endif
+ return true;
+}