app_httpd.c: Change commit re: 150ms LED delay
parent
21ae39713f
commit
7c8898a90a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue