mirror of
https://github.com/espressif/esp32-camera.git
synced 2025-07-04 16:13:11 +08:00
Fixed "gpio_install_isr_service(410): GPIO isr service already installed"
This commit is contained in:
@ -1256,8 +1256,13 @@ esp_err_t camera_init(const camera_config_t* config)
|
||||
vsync_intr_disable();
|
||||
err = gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1 | ESP_INTR_FLAG_IRAM);
|
||||
if (err != ESP_OK) {
|
||||
ESP_LOGE(TAG, "gpio_install_isr_service failed (%x)", err);
|
||||
goto fail;
|
||||
if (err != ESP_ERR_INVALID_STATE) {
|
||||
ESP_LOGE(TAG, "gpio_install_isr_service failed (%x)", err);
|
||||
goto fail;
|
||||
}
|
||||
else {
|
||||
ESP_LOGW(TAG, "gpio_install_isr_service already installed");
|
||||
}
|
||||
}
|
||||
err = gpio_isr_handler_add(s_state->config.pin_vsync, &vsync_isr, NULL);
|
||||
if (err != ESP_OK) {
|
||||
|
Reference in New Issue
Block a user