aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar tmk <nobody@nowhere>2014-04-28 15:21:42 +0900
committerGravatar tmk <nobody@nowhere>2014-04-28 16:41:35 +0900
commit110eea578b561f7169ea19927c54533c2b93b3a3 (patch)
tree04bf989378481492ddb24cc7c2b3b46bc5d919aa
parent37cf2607648a40bbac0b37f7e0838f240e66450a (diff)
downloadqmk_firmware-110eea578b561f7169ea19927c54533c2b93b3a3.tar.gz
Fix remotewakeup of PJRC stack(Fix #121)
- without this fix wakeup often fails - keyboard can wakeup once or twice but fails after that
-rw-r--r--protocol/pjrc/usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocol/pjrc/usb.c b/protocol/pjrc/usb.c
index 2b267d480..1e6ba8719 100644
--- a/protocol/pjrc/usb.c
+++ b/protocol/pjrc/usb.c
@@ -629,6 +629,7 @@ uint8_t usb_configured(void)
void usb_remote_wakeup(void)
{
UDCON |= (1<<RMWKUP);
+ while (UDCON & (1<<RMWKUP));
}