summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Fraser <liam@raspberrypi.com>2021-03-30 11:18:11 +0100
committerDamien George <damien@micropython.org>2021-03-31 13:50:21 +1100
commitca3d51f12206a88463f2b2a2d27756a1b519cb6a (patch)
tree982b513ee5e3d7c61039f5908ea536b5017ce4f5
parent5976ea02a50ea76d72ada40db4cda186147fb412 (diff)
rp2: Don't advertise remote wakeup for USB serial.
This USB feature is currently not supported. With this flag enabled (and the feature not implemented) the USB serial will stop working if there is a delay of more than about 2 seconds between messages, which can occur with USB autosuspend enabled. Fixes issue #6866.
-rw-r--r--ports/rp2/tusb_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/rp2/tusb_port.c b/ports/rp2/tusb_port.c
index afb566bdb..94856ab45 100644
--- a/ports/rp2/tusb_port.c
+++ b/ports/rp2/tusb_port.c
@@ -68,7 +68,7 @@ static const tusb_desc_device_t usbd_desc_device = {
static const uint8_t usbd_desc_cfg[USBD_DESC_LEN] = {
TUD_CONFIG_DESCRIPTOR(1, USBD_ITF_MAX, USBD_STR_0, USBD_DESC_LEN,
- TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, USBD_MAX_POWER_MA),
+ 0, USBD_MAX_POWER_MA),
TUD_CDC_DESCRIPTOR(USBD_ITF_CDC, USBD_STR_CDC, USBD_CDC_EP_CMD,
USBD_CDC_CMD_MAX_SIZE, USBD_CDC_EP_OUT, USBD_CDC_EP_IN, USBD_CDC_IN_OUT_MAX_SIZE),