- without this fix wakeup often fails - keyboard can wakeup once or twice but fails after thattags/v1.9
void usb_remote_wakeup(void) | void usb_remote_wakeup(void) | ||||
{ | { | ||||
UDCON |= (1<<RMWKUP); | UDCON |= (1<<RMWKUP); | ||||
while (UDCON & (1<<RMWKUP)); | |||||
} | } | ||||