app_httpd.c: Change commit re: 150ms LED delay

pull/104/head
Bond Keevil 2019-09-17 16:16:26 -04:00 committed by GitHub
parent 21ae39713f
commit 7c8898a90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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