Skip to content

Commit ca3d51f

Browse files
liamfraserdpgeorge
authored andcommitted
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 micropython#6866.
1 parent 5976ea0 commit ca3d51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/rp2/tusb_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static const tusb_desc_device_t usbd_desc_device = {
6868

6969
static const uint8_t usbd_desc_cfg[USBD_DESC_LEN] = {
7070
TUD_CONFIG_DESCRIPTOR(1, USBD_ITF_MAX, USBD_STR_0, USBD_DESC_LEN,
71-
TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, USBD_MAX_POWER_MA),
71+
0, USBD_MAX_POWER_MA),
7272

7373
TUD_CDC_DESCRIPTOR(USBD_ITF_CDC, USBD_STR_CDC, USBD_CDC_EP_CMD,
7474
USBD_CDC_CMD_MAX_SIZE, USBD_CDC_EP_OUT, USBD_CDC_EP_IN, USBD_CDC_IN_OUT_MAX_SIZE),

0 commit comments

Comments
 (0)