From 0084f442404a9bf22ff65c8084b3f4ec3b784b89 Mon Sep 17 00:00:00 2001 From: wzy-666 Date: Tue, 4 Feb 2020 12:55:56 +0800 Subject: [PATCH] Update app_httpd.cpp debug web page initial status --- TimeLapse/app_httpd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TimeLapse/app_httpd.cpp b/TimeLapse/app_httpd.cpp index da8efa6..7f6f355 100644 --- a/TimeLapse/app_httpd.cpp +++ b/TimeLapse/app_httpd.cpp @@ -26,7 +26,7 @@ const char *indexHtml = #include "index.h" ; -unsigned long interval = 1000; +extern unsigned long frameInterval; typedef struct { @@ -302,7 +302,7 @@ static esp_err_t status_handler(httpd_req_t *req) p += sprintf(p, "\"hmirror\":%u,", s->status.hmirror); p += sprintf(p, "\"dcw\":%u,", s->status.dcw); p += sprintf(p, "\"colorbar\":%u,", s->status.colorbar); - p += sprintf(p, "\"interval\":%u,", interval); + p += sprintf(p, "\"interval\":%u", frameInterval); *p++ = '}'; *p++ = 0; httpd_resp_set_type(req, "application/json");