diff options
| author | hathach <[email protected]> | 2021-10-24 13:11:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-10-24 13:11:21 +0700 |
| commit | 5af989384bd95dbf16f824bcc48e56f3ea283080 (patch) | |
| tree | 6bf7c17387612edfb8ea1bd010472db291addc32 /src/tusb.c | |
| parent | 6f5b197a98545c70efeeb4adcad0d41a3d30a57c (diff) | |
remove ep descriptor wMaxPacketSize bitfield due to endian issue
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tusb.c b/src/tusb.c index fc1936c3d..9583f509d 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -69,7 +69,7 @@ bool tusb_inited(void) bool tu_edpt_validate(tusb_desc_endpoint_t const * desc_ep, tusb_speed_t speed) { - uint16_t const max_packet_size = tu_le16toh(desc_ep->wMaxPacketSize.size); + uint16_t const max_packet_size = tu_edpt_packet_size(desc_ep); TU_LOG2(" Open EP %02X with Size = %u\r\n", desc_ep->bEndpointAddress, max_packet_size); switch (desc_ep->bmAttributes.xfer) |
