Merge pull request #8388 from bill88t/espcam-deinit

[ESPCAMERA] Deinit all the pins.
This commit is contained in:
Dan Halbert 2023-09-12 12:53:08 -04:00 committed by GitHub
commit 843fca1874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,6 +161,10 @@ extern void common_hal_espcamera_camera_deinit(espcamera_camera_obj_t *self) {
esp_camera_deinit(); esp_camera_deinit();
reset_pin_number(self->camera_config.pin_pclk);
reset_pin_number(self->camera_config.pin_vsync);
reset_pin_number(self->camera_config.pin_href);
self->camera_config.xclk_freq_hz = 0; self->camera_config.xclk_freq_hz = 0;
} }