diff options
| author | sakumisu <[email protected]> | 2022-11-14 20:38:38 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-11-14 20:38:38 +0800 |
| commit | b36b9c7ba5016d03a24dc8cb76b423a149fa1c56 (patch) | |
| tree | 1c7b31f26590be8bba6d6fc0457b928a9cf9b200 | |
| parent | 582eb2a7acfa91cacc26d4a9ca632dbb271e7fc4 (diff) | |
fix USB_OTG_HPRT_PRES with USB_OTG_HPRT_PRST
| -rw-r--r-- | port/dwc2/usb_hc_dwc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index 098d274e..ef91f024 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -653,7 +653,7 @@ int usbh_roothub_control(struct usb_setup_packet *setup, uint8_t *buf) if (hprt0 & USB_OTG_HPRT_POCA) { status |= (1 << HUB_PORT_FEATURE_OVERCURRENT); } - if (hprt0 & USB_OTG_HPRT_PRES) { + if (hprt0 & USB_OTG_HPRT_PRST) { status |= (1 << HUB_PORT_FEATURE_RESET); } if (hprt0 & USB_OTG_HPRT_PPWR) { |
