diff options
author | lalalademaxiya1 <2831039915@qq.com> | 2023-06-08 10:12:57 +0800 |
---|---|---|
committer | lalalademaxiya1 <2831039915@qq.com> | 2023-06-08 10:12:57 +0800 |
commit | 17671f67c85c226d816af3c79ef694e8be63dfde (patch) | |
tree | 60c28386e5f9b39e658a0d04ce972185e512e8f2 /keyboards | |
parent | 921a6749fd301f0ad38bb733ae8423b8de528123 (diff) |
Fix key keep down after keyboard waked up
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/keychron/bluetooth/transport.c | 3 | ||||
-rwxr-xr-x | keyboards/keychron/q6_pro/q6_pro.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/keyboards/keychron/bluetooth/transport.c b/keyboards/keychron/bluetooth/transport.c index e5986de11b..6c86906322 100644 --- a/keyboards/keychron/bluetooth/transport.c +++ b/keyboards/keychron/bluetooth/transport.c @@ -183,6 +183,9 @@ void usb_remote_wakeup(void) { usb_wakeup(&USB_DRIVER); } } + // palWriteLine(H3, PAL_HIGH); + wait_ms(500); + // palWriteLine(H3, PAL_LOW); /* Woken up */ // variables has been already cleared by the wakeup hook send_keyboard_report(); diff --git a/keyboards/keychron/q6_pro/q6_pro.c b/keyboards/keychron/q6_pro/q6_pro.c index 1b34937659..5ecc2cc485 100755 --- a/keyboards/keychron/q6_pro/q6_pro.c +++ b/keyboards/keychron/q6_pro/q6_pro.c @@ -151,6 +151,9 @@ void keyboard_post_init_kb(void) { palSetLineMode(CKBT51_RESET_PIN, PAL_MODE_OUTPUT_PUSHPULL); palWriteLine(CKBT51_RESET_PIN, PAL_HIGH); + palSetLineMode(H3, PAL_MODE_OUTPUT_PUSHPULL); + palWriteLine(H3, PAL_LOW); + /* IMPORTANT: DO NOT enable internal pull-up resistor * as there is an external pull-down resistor. */ |