Skip to content
Permalink
Browse files

usb: do not disable endpoints at USB_DC_SUSPEND event

Do not disable endpoints at USB_DC_SUSPEND event.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
  • Loading branch information...
jfischer-phytec-iot authored and carlescufi committed Jul 11, 2019
1 parent 4c21b0f commit 8e9bf88d66a91f63e8e345cf2accb541bc434134
Showing with 4 additions and 2 deletions.
  1. +4 −2 subsys/usb/usb_device.c
@@ -942,8 +942,10 @@ static void forward_status_cb(enum usb_dc_status_code status, const u8_t *param)
if (status == USB_DC_DISCONNECTED || status == USB_DC_SUSPEND) {
if (usb_dev.configured) {
usb_cancel_transfers();
foreach_ep(disable_interface_ep);
usb_dev.configured = false;
if (status == USB_DC_DISCONNECTED) {
foreach_ep(disable_interface_ep);
usb_dev.configured = false;
}
}
}

0 comments on commit 8e9bf88

Please sign in to comment.
You can’t perform that action at this time.