esp32s2: cam.c: Remove GPIO interrupt at deinit

This commit is contained in:
Jeff Epler 2021-06-10 10:42:52 -05:00
parent 929d6dab73
commit 98f812e0c2

View File

@ -447,6 +447,7 @@ esp_err_t cam_deinit() {
} }
cam_stop(); cam_stop();
gpio_isr_handler_remove(cam_obj->vsync_pin);
esp_intr_free(cam_obj->intr_handle); esp_intr_free(cam_obj->intr_handle);
vTaskDelete(cam_obj->task_handle); vTaskDelete(cam_obj->task_handle);
vQueueDelete(cam_obj->event_queue); vQueueDelete(cam_obj->event_queue);