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)
65
65
struct video_stm32_dcmi_data * dev_data =
66
66
CONTAINER_OF (hdcmi , struct video_stm32_dcmi_data , hdcmi );
67
67
struct video_buffer * vbuf ;
68
+ HAL_StatusTypeDef hal_ret ;
68
69
69
- HAL_DCMI_Suspend (hdcmi );
70
+ hal _ret = HAL_DCMI_Suspend (hdcmi );
71
+ __ASSERT_NO_MSG (hal_ret == HAL_OK );
70
72
71
73
vbuf = k_fifo_get (& dev_data -> fifo_in , K_NO_WAIT );
72
74
@@ -81,7 +83,8 @@ void HAL_DCMI_FrameEventCallback(DCMI_HandleTypeDef *hdcmi)
81
83
k_fifo_put (& dev_data -> fifo_out , vbuf );
82
84
83
85
resume :
84
- HAL_DCMI_Resume (hdcmi );
86
+ hal_ret = HAL_DCMI_Resume (hdcmi );
87
+ __ASSERT_NO_MSG (hal_ret == HAL_OK );
85
88
}
86
89
87
90
static void stm32_dcmi_isr (const struct device * dev )
You can’t perform that action at this time.
0 commit comments