summaryrefslogtreecommitdiff
path: root/src/class
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/class
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/class')
-rw-r--r--src/class/midi/midi_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/midi/midi_host.c b/src/class/midi/midi_host.c
index 7f7d536d8..03144eb45 100644
--- a/src/class/midi/midi_host.c
+++ b/src/class/midi/midi_host.c
@@ -267,10 +267,10 @@ bool midih_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *d
break;
case TUSB_DESC_ENDPOINT: {
- tusb_desc_endpoint_t const *p_ep = (tusb_desc_endpoint_t const *) p_desc;
+ const tusb_desc_endpoint_t *p_ep = (const tusb_desc_endpoint_t *) p_desc;
p_desc = tu_desc_next(p_desc); // next to CS endpoint
TU_VERIFY(p_desc < p_end && tu_desc_next(p_desc) <= p_end);
- midi_desc_cs_endpoint_t const *p_csep = (midi_desc_cs_endpoint_t const *) p_desc;
+ const midi_desc_cs_endpoint_t *p_csep = (const midi_desc_cs_endpoint_t *) p_desc;
TU_LOG_DRV(" Endpoint and CS_Endpoint descriptor %02x\r\n", p_ep->bEndpointAddress);
if (tu_edpt_dir(p_ep->bEndpointAddress) == TUSB_DIR_OUT) {