summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-30 14:47:11 +0700
committerhathach <[email protected]>2019-03-30 14:47:11 +0700
commitb28cc6ddb11ef233b6e6ee25b4a305b4b76cc03c (patch)
treede6623830676a997c9328f8996151537c30f5d6f /src/device/usbd.c
parentcabf6abb4f49648ad6eb1f9cb54bfad131f457b7 (diff)
added dcd_remote_wakeup() stub for all ports
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index f90c6b4df..dde98939f 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -189,7 +189,7 @@ void tud_set_self_powered(bool self_powered)
bool tud_remote_wakeup(void)
{
// only wake up host if this feature is enabled
- if (_usbd_dev.remote_wakeup_en ) dcd_remote_wakeup(TUD_OPT_RHPORT);
+ if (_usbd_dev.suspended && _usbd_dev.remote_wakeup_en ) dcd_remote_wakeup(TUD_OPT_RHPORT);
return _usbd_dev.remote_wakeup_en;
}