Skip to content

Commit b5b3bed

Browse files
author
andreas.larsson
committed
Added tmpisr = regs->ISR; at the end of the while loop to re-evaluate the ISR value
1 parent 2257d4b commit b5b3bed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_Level
688688
/* Clear the Direct Mode error flag */
689689
regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex;
690690
}
691+
tmpisr = regs->ISR;
691692
}
692693

693694
if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)

0 commit comments

Comments
 (0)