Skip to content

Commit a2315bf

Browse files
committed
Conditional variable fix
1 parent a6ae2b8 commit a2315bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,10 @@ static esp_err_t stream_handler(httpd_req_t *req)
530530
int64_t fr_ready = 0;
531531
int64_t fr_recognize = 0;
532532
int64_t fr_encode = 0;
533+
int64_t fr_face = 0;
533534
#endif
534535
int face_id = 0;
535536
int64_t fr_start = 0;
536-
int64_t fr_face = 0;
537537
size_t out_len = 0, out_width = 0, out_height = 0;
538538
uint8_t *out_buf = NULL;
539539
bool s = false;
@@ -590,8 +590,8 @@ static esp_err_t stream_handler(httpd_req_t *req)
590590
fr_ready = fr_start;
591591
fr_encode = fr_start;
592592
fr_recognize = fr_start;
593-
#endif
594593
fr_face = fr_start;
594+
#endif
595595
if (!detection_enabled || fb->width > 400)
596596
{
597597
#endif
@@ -629,8 +629,8 @@ static esp_err_t stream_handler(httpd_req_t *req)
629629
#else
630630
std::list<dl::detect::result_t> &results = s1.infer((uint16_t *)fb->buf, {(int)fb->height, (int)fb->width, 3});
631631
#endif
632-
fr_face = esp_timer_get_time();
633632
#if CONFIG_ESP_FACE_DETECT_ENABLED && ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_INFO
633+
fr_face = esp_timer_get_time();
634634
fr_recognize = fr_face;
635635
#endif
636636
if (results.size() > 0) {
@@ -691,8 +691,8 @@ static esp_err_t stream_handler(httpd_req_t *req)
691691
std::list<dl::detect::result_t> &results = s1.infer((uint8_t *)out_buf, {(int)out_height, (int)out_width, 3});
692692
#endif
693693

694-
fr_face = esp_timer_get_time();
695694
#if CONFIG_ESP_FACE_DETECT_ENABLED && ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_INFO
695+
fr_face = esp_timer_get_time();
696696
fr_recognize = fr_face;
697697
#endif
698698

0 commit comments

Comments
 (0)