mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/correct_csi_fsm_check' into 'master'
csi: fix wrong fsm state check in s_ctlr_csi_stop See merge request espressif/esp-idf!29829
This commit is contained in:
commit
fec8e10f4c
@ -417,7 +417,7 @@ esp_err_t s_ctlr_csi_stop(esp_cam_ctlr_handle_t handle)
|
||||
{
|
||||
ESP_RETURN_ON_FALSE(handle, ESP_ERR_INVALID_ARG, TAG, "invalid argument");
|
||||
csi_controller_t *ctlr = __containerof(handle, csi_controller_t, base);
|
||||
ESP_RETURN_ON_FALSE(ctlr->csi_fsm == CSI_FSM_ENABLED, ESP_ERR_INVALID_STATE, TAG, "driver isn't started");
|
||||
ESP_RETURN_ON_FALSE(ctlr->csi_fsm == CSI_FSM_STARTED, ESP_ERR_INVALID_STATE, TAG, "driver isn't started");
|
||||
|
||||
//disable CSI bridge
|
||||
mipi_csi_brg_ll_enable(ctlr->hal.bridge_dev, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user