summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-09-11 00:14:07 +0700
committerhathach <[email protected]>2020-09-11 00:14:07 +0700
commitce4a9b9c3ad15a8a714959c89c7a39ba67970cfd (patch)
tree1c2a18185f06db4f4d74ec5f5805032be05612dc /src
parent801f8b5b38b90cb3e15d0a1bb2accae58cde6130 (diff)
clean up
Diffstat (limited to 'src')
-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 5a7d72124..8fc0092eb 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1149,8 +1149,8 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
TU_LOG2(" Queue EP %02X with %u bytes ... ", ep_addr, total_bytes);
- // Attempt to transfer on busy or not claimed (skip now) endpoint, sound like an race condition !
- TU_ASSERT(_usbd_dev.ep_status[epnum][dir].busy == 0 /*&& _usbd_dev.ep_status[epnum][dir].claimed == 1*/);
+ // Attempt to transfer on a busy endpoint, sound like an race condition !
+ TU_ASSERT(_usbd_dev.ep_status[epnum][dir].busy == 0);
// Set busy first since the actual transfer can be complete before dcd_edpt_xfer() could return
// and usbd task can preempt and clear the busy