summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/bluetooth/bluetooth.c
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-09-22 17:33:56 +0800
committerlokher <lokher@gmail.com>2022-09-22 17:33:56 +0800
commitf67150f16cb0e5bc71dc3320750ff96ba99e96dc (patch)
tree559bf802f0737dac2e0d4892577818d10d7c9f39 /keyboards/keychron/bluetooth/bluetooth.c
parent9581289745736ce068a1040f44cec37a2ca8830d (diff)
refactor indicator.c; fix LED/RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL related issue
Diffstat (limited to 'keyboards/keychron/bluetooth/bluetooth.c')
-rw-r--r--keyboards/keychron/bluetooth/bluetooth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/keychron/bluetooth/bluetooth.c b/keyboards/keychron/bluetooth/bluetooth.c
index 10c79257a9..e93fd8d4ac 100644
--- a/keyboards/keychron/bluetooth/bluetooth.c
+++ b/keyboards/keychron/bluetooth/bluetooth.c
@@ -432,10 +432,12 @@ bluetooth_state_t bluetooth_get_state(void) {
return bt_state;
};
+__attribute__((weak)) bool process_record_kb_bt(uint16_t keycode, keyrecord_t *record) { return true;};
+
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if (get_transport() == TRANSPORT_BLUETOOTH) {
lpm_timer_reset();
}
-
+ process_record_kb_bt(keycode, record);
return process_record_user(keycode, record);
}