summaryrefslogtreecommitdiff
path: root/src/host/usbh.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-03-06 11:03:47 +0700
committerhathach <[email protected]>2025-03-06 11:03:47 +0700
commitee234a84caf59d23395ed70f5e1c9d772e3f958b (patch)
tree6c1c52876f42155f9e17a585fc14cef87a630813 /src/host/usbh.c
parent39e6375b74b38b01e7868c283874b3a305b524e1 (diff)
hack: force/overwrite endpoint mps to 64 for device that incorrectly report 512 bytes for bulk in fullspeed mode.
Diffstat (limited to 'src/host/usbh.c')
-rw-r--r--src/host/usbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 609fe5000..c87f058cd 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -986,7 +986,7 @@ static bool usbh_edpt_control_open(uint8_t dev_addr, uint8_t max_packet_size) {
}
bool tuh_edpt_open(uint8_t dev_addr, tusb_desc_endpoint_t const* desc_ep) {
- TU_ASSERT(tu_edpt_validate(desc_ep, tuh_speed_get(dev_addr)));
+ TU_ASSERT(tu_edpt_validate(desc_ep, tuh_speed_get(dev_addr), true));
return hcd_edpt_open(usbh_get_rhport(dev_addr), dev_addr, desc_ep);
}