From 61c381be948cb6dd181abf06323a12a849fa6d3b Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 2 Nov 2021 17:00:22 +0100 Subject: [PATCH] Update xdrv_81_esp32_webcam.ino --- tasmota/xdrv_81_esp32_webcam.ino | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_81_esp32_webcam.ino b/tasmota/xdrv_81_esp32_webcam.ino index 617af46fb..dca8ec936 100644 --- a/tasmota/xdrv_81_esp32_webcam.ino +++ b/tasmota/xdrv_81_esp32_webcam.ino @@ -81,8 +81,17 @@ #include "esp_camera.h" #include "sensor.h" #include "fb_gfx.h" -#include "fd_forward.h" -#include "fr_forward.h" + +#ifdef USE_FACE_DETECT + #if ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(4, 0, 0) + #include "fd_forward.h" + #include "fr_forward.h" +// #pragma message("Face detection enabled") + #else + #pragma message("Face detection not supported from Tasmota with Arduino Core 2.0.x. Disabling") + #undef USE_FACE_DETECT + #endif +#endif bool HttpCheckPriviledgedAccess(bool); extern ESP8266WebServer *Webserver;