From 28296929286584d38e0a9e3456029204898a59a7 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Mon, 17 Jun 2024 11:18:36 +0300 Subject: [PATCH] Revert Uninstalls ISR service on cam deinit #516 Change is necessary in order to not stop other GPIO ISR uses that users might have in their code. This would cause an error to be emitted when driver is re-initialized, but it's dismissed in code, so the error will not cause any other change in behavior. cc @AxelLin @wouterdebie --- target/esp32/ll_cam.c | 1 - target/esp32s2/ll_cam.c | 1 - 2 files changed, 2 deletions(-) diff --git a/target/esp32/ll_cam.c b/target/esp32/ll_cam.c index 4c486444c8..73c979768b 100644 --- a/target/esp32/ll_cam.c +++ b/target/esp32/ll_cam.c @@ -257,7 +257,6 @@ esp_err_t ll_cam_deinit(cam_obj_t *cam) esp_intr_free(cam->cam_intr_handle); cam->cam_intr_handle = NULL; } - gpio_uninstall_isr_service(); return ESP_OK; } diff --git a/target/esp32s2/ll_cam.c b/target/esp32s2/ll_cam.c index 580c0355d6..b02116162d 100644 --- a/target/esp32s2/ll_cam.c +++ b/target/esp32s2/ll_cam.c @@ -95,7 +95,6 @@ esp_err_t ll_cam_deinit(cam_obj_t *cam) esp_intr_free(cam->cam_intr_handle); cam->cam_intr_handle = NULL; } - gpio_uninstall_isr_service(); return ESP_OK; }