Skip to content

Commit

Permalink
Workaround SN32 USB code deficiencies for remote wakeup to work
Browse files Browse the repository at this point in the history
  • Loading branch information
stdvar committed Apr 19, 2021
1 parent 1af97cb commit bbcfa47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tmk_core/protocol/chibios/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,14 @@ int main(void) {
/* Remote wakeup */
if (suspend_wakeup_condition()) {
usbWakeupHost(&USB_DRIVER);
//Generally there is no need to restart usb driver
//Change is introduced in https://github.com/qmk/qmk_firmware/pull/10088
//Restarting driver entails bus disconnet/connect and device reenumeration
//SN32 USB driver currently doesn't have proper handling for usb restart thus comment it for now
//Alternatively it is posible to workaround it via ifndefs
#if !defined(SN32F24xx)
restart_usb_driver(&USB_DRIVER);
#endif
}
}
/* Woken up */
Expand Down

0 comments on commit bbcfa47

Please sign in to comment.