app_httpd.c: Change commit re: 150ms LED delay
parent
21ae39713f
commit
7c8898a90a
|
|
@ -269,8 +269,8 @@ static esp_err_t capture_handler(httpd_req_t *req){
|
||||||
|
|
||||||
#ifdef CONFIG_LED_ILLUMINATOR_ENABLED
|
#ifdef CONFIG_LED_ILLUMINATOR_ENABLED
|
||||||
enable_led(true);
|
enable_led(true);
|
||||||
vTaskDelay(150 / portTICK_PERIOD_MS); // The LED requires ~150ms to "warm up"
|
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();
|
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);
|
enable_led(false);
|
||||||
#else
|
#else
|
||||||
fb = esp_camera_fb_get();
|
fb = esp_camera_fb_get();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue