Skip to content

Commit 36b8b4e

Browse files
Wouter de Bieme-no-dev
andauthored
Uninstalls ISR service on cam deinit (#516)
Since `gpio_install_isr_service()` is called when initializing the camera, but on de-initiazlization the ISR service is not uninstalled. This causes an error `gpio_install_isr_service(410): GPIO isr service already installed` when the camera is re-initialized. Co-authored-by: Me No Dev <[email protected]>
1 parent 1cb6af8 commit 36b8b4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

target/esp32/ll_cam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ esp_err_t ll_cam_deinit(cam_obj_t *cam)
253253
esp_intr_free(cam->cam_intr_handle);
254254
cam->cam_intr_handle = NULL;
255255
}
256-
256+
gpio_uninstall_isr_service();
257257
return ESP_OK;
258258
}
259259

target/esp32s2/ll_cam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ esp_err_t ll_cam_deinit(cam_obj_t *cam)
9595
esp_intr_free(cam->cam_intr_handle);
9696
cam->cam_intr_handle = NULL;
9797
}
98-
98+
gpio_uninstall_isr_service();
9999
return ESP_OK;
100100
}
101101

0 commit comments

Comments
 (0)