summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorWini-Buh <[email protected]>2021-06-22 23:49:24 +0200
committerWini-Buh <[email protected]>2021-06-22 23:49:24 +0200
commit51c6444e1d8be85d5f4c8b4ebf7e48db7f589bc2 (patch)
tree848f493bcec479ab80497c5589b2a1008c87a7d3 /src/device/usbd.c
parentc5f6b57755052284e2fec8aa79b93272e757b297 (diff)
final clean up
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index cedca540e..00ec29c9a 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1156,14 +1156,14 @@ void usbd_defer_func(osal_task_func_t func, void* param, bool in_isr)
bool usbd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * desc_ep)
{
- TU_LOG2(" Open EP %02X with Size = %u\r\n", desc_ep->bEndpointAddress, desc_ep->wMaxPacketSize.size);
+ TU_LOG2(" Open EP %02X with Size = %u\r\n", desc_ep->bEndpointAddress, tu_le16toh(desc_ep->wMaxPacketSize.size));
switch (desc_ep->bmAttributes.xfer)
{
case TUSB_XFER_ISOCHRONOUS:
{
uint16_t const max_epsize = (_usbd_dev.speed == TUSB_SPEED_HIGH ? 1024 : 1023);
- TU_ASSERT(desc_ep->wMaxPacketSize.size <= max_epsize);
+ TU_ASSERT(tu_le16toh(desc_ep->wMaxPacketSize.size) <= max_epsize);
}
break;