summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/k10_pro/k10_pro.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/k10_pro/k10_pro.c')
-rwxr-xr-x[-rw-r--r--]keyboards/keychron/k10_pro/k10_pro.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/keyboards/keychron/k10_pro/k10_pro.c b/keyboards/keychron/k10_pro/k10_pro.c
index ec0eb70acb..077b3fd86e 100644..100755
--- a/keyboards/keychron/k10_pro/k10_pro.c
+++ b/keyboards/keychron/k10_pro/k10_pro.c
@@ -196,7 +196,8 @@ void matrix_scan_kb(void) {
#ifdef KC_BLUETOOTH_ENABLE
static void ckbt51_param_init(void) {
/* Set bluetooth device name */
- ckbt51_set_local_name(STR(PRODUCT));
+ // ckbt51_set_local_name(STR(PRODUCT));
+ ckbt51_set_local_name(PRODUCT);
/* Set bluetooth parameters */
module_param_t param = {.event_mode = 0x02,
.connected_idle_timeout = 7200,
@@ -224,6 +225,21 @@ void bluetooth_enter_disconnected_kb(uint8_t host_idx) {
}
}
+void ckbt51_default_ack_handler(uint8_t *data, uint8_t len) {
+ if (data[1] == 0x45) {
+ module_param_t param = {.event_mode = 0x02,
+ .connected_idle_timeout = 7200,
+ .pairing_timeout = 180,
+ .pairing_mode = 0,
+ .reconnect_timeout = 5,
+ .report_rate = 90,
+ .vendor_id_source = 1,
+ .verndor_id = 0, // Must be 0x3434
+ .product_id = PRODUCT_ID};
+ ckbt51_set_param(&param);
+ }
+}
+
void bluetooth_pre_task(void) {
static uint8_t mode = 1;