Fix remotewakeup of PJRC stack(Fix #121)
- without this fix wakeup often fails - keyboard can wakeup once or twice but fails after that
This commit is contained in:
parent
efc983a07d
commit
a1f49ff8c1
@ -629,6 +629,7 @@ uint8_t usb_configured(void)
|
|||||||
void usb_remote_wakeup(void)
|
void usb_remote_wakeup(void)
|
||||||
{
|
{
|
||||||
UDCON |= (1<<RMWKUP);
|
UDCON |= (1<<RMWKUP);
|
||||||
|
while (UDCON & (1<<RMWKUP));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user