diff options
author | tmk <nobody@nowhere> | 2014-04-28 15:21:42 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-04-28 16:41:35 +0900 |
commit | 110eea578b561f7169ea19927c54533c2b93b3a3 (patch) | |
tree | 04bf989378481492ddb24cc7c2b3b46bc5d919aa | |
parent | 37cf2607648a40bbac0b37f7e0838f240e66450a (diff) | |
download | qmk_firmware-110eea578b561f7169ea19927c54533c2b93b3a3.tar.gz qmk_firmware-110eea578b561f7169ea19927c54533c2b93b3a3.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/protocol/pjrc/usb.c b/protocol/pjrc/usb.c index 2b267d4800..1e6ba8719a 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)); } |