Skip to content

Commit

Permalink
Fix remotewakeup of PJRC stack(Fix #121)
Browse files Browse the repository at this point in the history
- without this fix wakeup often fails
- keyboard can wakeup once or twice but fails after that
  • Loading branch information
yashikno committed Apr 28, 2014
1 parent 37cf260 commit 110eea5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protocol/pjrc/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ uint8_t usb_configured(void)
void usb_remote_wakeup(void)
{
UDCON |= (1<<RMWKUP);
while (UDCON & (1<<RMWKUP));
}


Expand Down

0 comments on commit 110eea5

Please sign in to comment.