diff options
author | lalalademaxiya1 <2831039915@qq.com> | 2023-08-14 16:13:07 +0800 |
---|---|---|
committer | lalalademaxiya1 <2831039915@qq.com> | 2023-08-14 16:13:07 +0800 |
commit | 37ab9605036ccf53a8e74644e6503c93c41ba8f0 (patch) | |
tree | 0065aa22d0c624adef44df11d250e368ce567abb /keyboards/keychron/k14_pro/k14_pro.c | |
parent | 50462388aa2859dc95cc1deee59d03bbc098919f (diff) |
Update k14 pro
Diffstat (limited to 'keyboards/keychron/k14_pro/k14_pro.c')
-rwxr-xr-x | keyboards/keychron/k14_pro/k14_pro.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/keyboards/keychron/k14_pro/k14_pro.c b/keyboards/keychron/k14_pro/k14_pro.c index b00758d262..cdf4a03322 100755 --- a/keyboards/keychron/k14_pro/k14_pro.c +++ b/keyboards/keychron/k14_pro/k14_pro.c @@ -142,7 +142,6 @@ void keyboard_post_init_kb(void) { #ifdef KC_BLUETOOTH_ENABLE /* Currently we don't use this reset pin */ - // palSetLineMode(CKBT51_RESET_PIN, PAL_MODE_UNCONNECTED); palSetLineMode(CKBT51_RESET_PIN, PAL_MODE_OUTPUT_PUSHPULL); palWriteLine(CKBT51_RESET_PIN, PAL_HIGH); @@ -195,7 +194,6 @@ 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(PRODUCT); wait_ms(10); /* Set bluetooth parameters */ @@ -209,6 +207,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) { @@ -309,3 +308,9 @@ void raw_hid_receive(uint8_t *data, uint8_t length) { } } #endif + +void suspend_wakeup_init_kb(void) { + // code will run on keyboard wakeup + clear_keyboard(); + send_keyboard_report(); +} |