summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}