From 15cb4056c5d51a0180d53656692a7af678398dfb Mon Sep 17 00:00:00 2001 From: Luc Date: Fri, 1 Nov 2019 14:51:01 +0100 Subject: [PATCH] Allow web command to be reactive when camera streaming is on --- esp3d/src/modules/camera/camera.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/esp3d/src/modules/camera/camera.cpp b/esp3d/src/modules/camera/camera.cpp index 443dc196..9b6f8573 100644 --- a/esp3d/src/modules/camera/camera.cpp +++ b/esp3d/src/modules/camera/camera.cpp @@ -29,6 +29,9 @@ #include #include "fd_forward.h" #include +#if defined (HTTP_FEATURE) +#include "../http/http_server.h" +#endif //HTTP_FEATURE #define DEFAULT_FRAME_SIZE FRAMESIZE_SVGA #define PART_BUFFER_SIZE 64 @@ -73,6 +76,10 @@ static esp_err_t stream_handler(httpd_req_t *req) if (!esp3d_camera.isconnected()) { return ESP_FAIL; } +#if defined (HTTP_FEATURE) + HTTP_Server::handle(); +#endif //HTTP_FEATURE + HTTP_Server::handle(); log_esp3d("Camera capture ongoing"); fb = esp_camera_fb_get(); if (!fb) {