diff options
| author | hathach <[email protected]> | 2024-07-31 18:28:17 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-07-31 18:28:17 +0700 |
| commit | 7d9b39946601e1c7cd393d09db40892bca5cf477 (patch) | |
| tree | ab84c93e06529602b4531d9f67900720356cbe48 | |
| parent | 7954d9cb4c486b263bed8984b7dd7553092150f9 (diff) | |
fix ep type bulk typo
| -rw-r--r-- | src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c index 29e1ca111..346cf8164 100644 --- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c +++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c @@ -488,7 +488,6 @@ void dcd_edpt0_status_complete(uint8_t rhport, tusb_control_request_t const *req (void)rhport; if (request->bmRequestType_bit.recipient == TUSB_REQ_RCPT_DEVICE && - request->bmRequestType_bit.type == TUSB_REQ_TYPE_STANDARD && request->bRequest == TUSB_REQ_SET_ADDRESS) { uint8_t const dev_addr = (uint8_t)request->wValue; @@ -605,7 +604,7 @@ bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const *desc_ep) { // Set type switch (desc_ep->bmAttributes.xfer) { case TUSB_XFER_BULK: - ep_reg |= USB_EP_CONTROL; // FIXME should it be bulk? + ep_reg |= USB_EP_BULK; break; case TUSB_XFER_INTERRUPT: ep_reg |= USB_EP_INTERRUPT; |
