diff options
author | lalalademaxiya1 <2831039915@qq.com> | 2023-06-06 10:29:00 +0800 |
---|---|---|
committer | lalalademaxiya1 <2831039915@qq.com> | 2023-06-06 10:29:00 +0800 |
commit | 921a6749fd301f0ad38bb733ae8423b8de528123 (patch) | |
tree | d98cbd241732bfd7f0b44981fe4bf0d18544842f /keyboards/keychron/q6_pro | |
parent | 3707b542c498ab833c0829c99de2102d01410adf (diff) |
Update k6_pro.c
Diffstat (limited to 'keyboards/keychron/q6_pro')
-rwxr-xr-x | keyboards/keychron/q6_pro/q6_pro.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/keyboards/keychron/q6_pro/q6_pro.c b/keyboards/keychron/q6_pro/q6_pro.c index 5ad0d2d5f6..1b34937659 100755 --- a/keyboards/keychron/q6_pro/q6_pro.c +++ b/keyboards/keychron/q6_pro/q6_pro.c @@ -185,7 +185,7 @@ void matrix_scan_kb(void) { if (bt_factory_reset) { bt_factory_reset = false; palWriteLine(CKBT51_RESET_PIN, PAL_LOW); - wait_ms(5); + wait_ms(10); palWriteLine(CKBT51_RESET_PIN, PAL_HIGH); } } @@ -216,6 +216,7 @@ static void ckbt51_param_init(void) { /* Set bluetooth device name */ // ckbt51_set_local_name(STR(PRODUCT)); ckbt51_set_local_name(PRODUCT); + wait_ms(10); /* Set bluetooth parameters */ module_param_t param = {.event_mode = 0x02, .connected_idle_timeout = 7200, @@ -227,6 +228,7 @@ static void ckbt51_param_init(void) { .verndor_id = 0, // Must be 0x3434 .product_id = PRODUCT_ID}; ckbt51_set_param(¶m); + wait_ms(10); } void bluetooth_enter_disconnected_kb(uint8_t host_idx) { @@ -238,6 +240,8 @@ void bluetooth_enter_disconnected_kb(uint8_t host_idx) { /* CKBT51 bluetooth module boot time is slower, it enters disconnected after boot, so we place initialization here. */ if (firstDisconnect && sync_timer_read32() < 1000 && get_transport() == TRANSPORT_BLUETOOTH) { + ckbt51_set_local_name(PRODUCT); + ckbt51_param_init(); bluetooth_connect(); firstDisconnect = false; |