File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,10 @@ void HAL_DCMI_FrameEventCallback(DCMI_HandleTypeDef *hdcmi)
6565 struct video_stm32_dcmi_data * dev_data =
6666 CONTAINER_OF (hdcmi , struct video_stm32_dcmi_data , hdcmi );
6767 struct video_buffer * vbuf ;
68+ HAL_StatusTypeDef hal_ret ;
6869
69- HAL_DCMI_Suspend (hdcmi );
70+ hal _ret = HAL_DCMI_Suspend (hdcmi );
71+ __ASSERT_NO_MSG (hal_ret == HAL_OK );
7072
7173 vbuf = k_fifo_get (& dev_data -> fifo_in , K_NO_WAIT );
7274
@@ -81,7 +83,8 @@ void HAL_DCMI_FrameEventCallback(DCMI_HandleTypeDef *hdcmi)
8183 k_fifo_put (& dev_data -> fifo_out , vbuf );
8284
8385resume :
84- HAL_DCMI_Resume (hdcmi );
86+ hal_ret = HAL_DCMI_Resume (hdcmi );
87+ __ASSERT_NO_MSG (hal_ret == HAL_OK );
8588}
8689
8790static void stm32_dcmi_isr (const struct device * dev )
You can’t perform that action at this time.
0 commit comments