Skip to content

Commit 85de184

Browse files
committed
Conditional variable fix 2
1 parent a2315bf commit 85de184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP32/examples/Camera/CameraWebServer/app_httpd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,9 @@ static esp_err_t stream_handler(httpd_req_t *req)
531531
int64_t fr_recognize = 0;
532532
int64_t fr_encode = 0;
533533
int64_t fr_face = 0;
534+
int64_t fr_start = 0;
534535
#endif
535536
int face_id = 0;
536-
int64_t fr_start = 0;
537537
size_t out_len = 0, out_width = 0, out_height = 0;
538538
uint8_t *out_buf = NULL;
539539
bool s = false;
@@ -585,8 +585,8 @@ static esp_err_t stream_handler(httpd_req_t *req)
585585
_timestamp.tv_sec = fb->timestamp.tv_sec;
586586
_timestamp.tv_usec = fb->timestamp.tv_usec;
587587
#if CONFIG_ESP_FACE_DETECT_ENABLED
588-
fr_start = esp_timer_get_time();
589588
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_INFO
589+
fr_start = esp_timer_get_time();
590590
fr_ready = fr_start;
591591
fr_encode = fr_start;
592592
fr_recognize = fr_start;

0 commit comments

Comments
 (0)