Skip to content

Commit

Permalink
fix(port/dwc2/usb_hc_dwc2): fix check typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sakumisu committed Oct 17, 2024
1 parent f1a1434 commit 05315b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions port/dwc2/usb_hc_dwc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ int usbh_submit_urb(struct usbh_urb *urb)
}
} else {
/* Check if intr and iso pipe tx fifo is overflow */
if (((USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize) == USB_ENDPOINT_TYPE_ISOCHRONOUS) ||
(USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize) == USB_ENDPOINT_TYPE_INTERRUPT)) &&
if (((USB_GET_ENDPOINT_TYPE(urb->ep->bmAttributes) == USB_ENDPOINT_TYPE_ISOCHRONOUS) ||
(USB_GET_ENDPOINT_TYPE(urb->ep->bmAttributes) == USB_ENDPOINT_TYPE_INTERRUPT)) &&
USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize) > (CONFIG_USB_DWC2_PTX_FIFO_SIZE * 4)) {
return -USB_ERR_RANGE;
} else {
Expand Down

0 comments on commit 05315b7

Please sign in to comment.