summaryrefslogtreecommitdiffstats
path: root/protocol/pjrc/usb.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-04-28 15:21:42 +0900
committertmk <nobody@nowhere>2014-04-28 16:41:35 +0900
commit110eea578b561f7169ea19927c54533c2b93b3a3 (patch)
tree04bf989378481492ddb24cc7c2b3b46bc5d919aa /protocol/pjrc/usb.c
parent37cf2607648a40bbac0b37f7e0838f240e66450a (diff)
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/pjrc/usb.c')
-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 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));
}