diff --git a/ports/esp32s2/cam.c b/ports/esp32s2/cam.c index 74225dc2a3..e435993c6d 100644 --- a/ports/esp32s2/cam.c +++ b/ports/esp32s2/cam.c @@ -447,6 +447,7 @@ esp_err_t cam_deinit() { } cam_stop(); + gpio_isr_handler_remove(cam_obj->vsync_pin); esp_intr_free(cam_obj->intr_handle); vTaskDelete(cam_obj->task_handle); vQueueDelete(cam_obj->event_queue);