mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 18:30:37 +08:00
Merge pull request #652 from MarSoft/fix-camera-bootup
Add delay before starting camera I never had such issue - but it won't hurt
This commit is contained in:
commit
3c7082a5b5
@ -274,6 +274,7 @@ bool Camera::initHardware()
|
|||||||
gpio_config(&gpio_pwr_config);
|
gpio_config(&gpio_pwr_config);
|
||||||
gpio_set_level(GPIO_NUM_32,0);
|
gpio_set_level(GPIO_NUM_32,0);
|
||||||
#endif //CAMERA_DEVICE == CAMERA_MODEL_AI_THINKER
|
#endif //CAMERA_DEVICE == CAMERA_MODEL_AI_THINKER
|
||||||
|
delay(500);
|
||||||
log_esp3d("Init camera config");
|
log_esp3d("Init camera config");
|
||||||
esp_err_t err = esp_camera_init(&config);
|
esp_err_t err = esp_camera_init(&config);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user