Merge pull request #514 from kasjer/kasjer/fix-nrf52-edpt_dma_start

nrf52: Fix edpt_dma_start() wrong condition check
This commit is contained in:
Ha Thach 2020-09-16 00:43:21 +07:00 committed by GitHub
commit 9a0a78c52e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;