summaryrefslogtreecommitdiffstats
path: root/protocol
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-04-28 08:21:42 +0200
committertmk <nobody@nowhere>2014-04-28 09:41:35 +0200
commit110eea578b561f7169ea19927c54533c2b93b3a3 (patch)
tree04bf989378481492ddb24cc7c2b3b46bc5d919aa /protocol
parent37cf2607648a40bbac0b37f7e0838f240e66450a (diff)
downloadqmk_firmware-110eea578b561f7169ea19927c54533c2b93b3a3.tar.gz
qmk_firmware-110eea578b561f7169ea19927c54533c2b93b3a3.tar.xz
Fix remotewakeup of PJRC stack(Fix #121)
- without this fix wakeup often fails - keyboard can wakeup once or twice but fails after that
Diffstat (limited to 'protocol')
-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));
}