Merge pull request #6 from wzy-666/patch-1

Update app_httpd.cpp
This commit is contained in:
bitluni 2020-02-04 13:29:03 +01:00 committed by GitHub
commit 52ef43def7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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");