summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-09-16 00:43:21 +0700
committerGitHub <[email protected]>2020-09-16 00:43:21 +0700
commit9a0a78c52e311f7dbf904d77be118c8a789f0c45 (patch)
tree05fd21763da46c387e99ecb50b6ff6b4114f5b01 /src
parent745c15d5b5b7fed5fd8e89cc95b76a56af673a60 (diff)
parent62a76c0e049998c6fda2f349503bee2fafd12bad (diff)
Merge pull request #514 from kasjer/kasjer/fix-nrf52-edpt_dma_start
nrf52: Fix edpt_dma_start() wrong condition check
Diffstat (limited to 'src')
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index cd35f2e5b..60da9fb25 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -122,7 +122,7 @@ static void edpt_dma_start(volatile uint32_t* reg_startep)
// for the DMA complete by comparing current pending DMA with number of ENDED Events
uint32_t ended = 0;
- while ( _dcd.dma_pending < ((uint8_t) ended) )
+ while ( _dcd.dma_pending > ((uint8_t) ended) )
{
ended = NRF_USBD->EVENTS_ENDISOIN + NRF_USBD->EVENTS_ENDISOOUT;