Added tmpisr = regs->ISR; at the end of the while loop to re-evaluate the ISR value

pull/3393/head
andreas.larsson 2016-11-16 16:18:16 +01:00
parent 2257d4b2f2
commit b5b3bede31
1 changed files with 1 additions and 0 deletions
targets/TARGET_STM/TARGET_STM32F4/device

View File

@ -688,6 +688,7 @@ HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_Level
/* Clear the Direct Mode error flag */
regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex;
}
tmpisr = regs->ISR;
}
if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)