浏览代码

Fix remotewakeup of PJRC stack(Fix #121)

- without this fix wakeup often fails
- keyboard can wakeup once or twice but fails after that
yuk86
tmk 10 年前
父节点
当前提交
110eea578b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      protocol/pjrc/usb.c

+ 1
- 0
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));
}