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:
Luc 2021-07-20 14:49:15 +02:00 committed by GitHub
commit 3c7082a5b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {