diff --git a/examples/single_chip/camera_web_server/main/app_httpd.c b/examples/single_chip/camera_web_server/main/app_httpd.c index fc8dd18..484a9d6 100644 --- a/examples/single_chip/camera_web_server/main/app_httpd.c +++ b/examples/single_chip/camera_web_server/main/app_httpd.c @@ -269,9 +269,9 @@ static esp_err_t capture_handler(httpd_req_t *req){ #ifdef CONFIG_LED_ILLUMINATOR_ENABLED enable_led(true); - vTaskDelay(150 / portTICK_PERIOD_MS); // The LED requires ~150ms to "warm up" - fb = esp_camera_fb_get(); - enable_led(false); + vTaskDelay(150 / portTICK_PERIOD_MS); // The LED needs to be turned on ~150ms before the call to esp_camera_fb_get() + fb = esp_camera_fb_get(); // or it won't be visible in the frame. A better way to do this is needed. + enable_led(false); #else fb = esp_camera_fb_get(); #endif