Fix key keep down after keyboard waked up
This commit is contained in:
parent
921a6749fd
commit
17671f67c8
2 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue