fix USB_OTG_HPRT_PRES with USB_OTG_HPRT_PRST

This commit is contained in:
sakumisu
2022-11-14 20:38:38 +08:00
parent 582eb2a7ac
commit b36b9c7ba5

View File

@@ -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) {