Skip to content

Commit d1e83c0

Browse files
committed
hal: dcmipp: fixes multiple start/stop
1 parent ffb8bfd commit d1e83c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stm32cube/stm32n6xx/drivers/src/stm32n6xx_hal_dcmipp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,8 @@ HAL_StatusTypeDef HAL_DCMIPP_PIPE_SetConfig(DCMIPP_HandleTypeDef *hdcmipp, uint3
10411041

10421042
if (hdcmipp->State == HAL_DCMIPP_STATE_READY)
10431043
{
1044-
if ((pipe_state == HAL_DCMIPP_PIPE_STATE_RESET) || (pipe_state == HAL_DCMIPP_PIPE_STATE_ERROR))
1044+
if ((pipe_state == HAL_DCMIPP_PIPE_STATE_READY) || (pipe_state == HAL_DCMIPP_PIPE_STATE_RESET) ||
1045+
(pipe_state == HAL_DCMIPP_PIPE_STATE_ERROR))
10451046
{
10461047
/* Update the DCMIPP PIPE state */
10471048
hdcmipp->PipeState[Pipe] = HAL_DCMIPP_PIPE_STATE_BUSY;

0 commit comments

Comments
 (0)