Skip to content

Commit

Permalink
Uninstalls ISR service on cam deinit (#516)
Browse files Browse the repository at this point in the history
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 <me-no-dev@users.noreply.github.com>
  • Loading branch information
Wouter de Bie and me-no-dev authored Apr 20, 2023
1 parent 1cb6af8 commit 36b8b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion target/esp32/ll_cam.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ 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;
}

Expand Down
2 changes: 1 addition & 1 deletion target/esp32s2/ll_cam.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ 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;
}

Expand Down

0 comments on commit 36b8b4e

Please sign in to comment.