[HAL][DMA] Update State machine implementation in HAL_DMA_Init() API

    edit 5b71eec [HAL][DMA] Update State machine implementation in HAL_DMA_Init() API
diff --git a/Src/stm32f7xx_hal_dma.c b/Src/stm32f7xx_hal_dma.c
index df3d285..e74cf9e 100644
--- a/Src/stm32f7xx_hal_dma.c
+++ b/Src/stm32f7xx_hal_dma.c
@@ -276,7 +276,7 @@
         hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
         
         /* Change the DMA state */
-        hdma->State = HAL_DMA_STATE_READY;
+        hdma->State = HAL_DMA_STATE_RESET;
         
         return HAL_ERROR; 
       }