Fix key keep down after keyboard waked up

This commit is contained in:
lalalademaxiya1 2023-06-08 10:12:57 +08:00
parent 921a6749fd
commit 17671f67c8
2 changed files with 6 additions and 0 deletions

View file

@ -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();

View file

@ -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.
*/