From 5df1ddb146df5b2546bf803451933743edce4133 Mon Sep 17 00:00:00 2001 From: zogodo <742782908@qq.com> Date: Sun, 19 Jul 2020 10:53:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E8=A8=80=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/http_server/app_httpd.c | 2 +- TC1/http_server/web/index.html | 66 +- TC1/http_server/web/index_en.html | 1 + TC1/http_server/web/styles.css | 3 + TC1/http_server/web_data.c | 1373 +++++++++++++++-------------- 5 files changed, 755 insertions(+), 690 deletions(-) diff --git a/TC1/http_server/app_httpd.c b/TC1/http_server/app_httpd.c index 71652d2..be4519c 100644 --- a/TC1/http_server/app_httpd.c +++ b/TC1/http_server/app_httpd.c @@ -203,7 +203,7 @@ static int HttpGetPowerInfo(httpd_request_t *req) mico_time_t past_ms = 0; mico_time_get_time(&past_ms); int past = past_ms / 1000; - int d = past / 3600 * 60; + int d = past / (3600 * 60); int h = past / 3600 % 24; int m = past / 60 % 60; int s = past % 60; diff --git a/TC1/http_server/web/index.html b/TC1/http_server/web/index.html index 7bbdc8f..b211cd1 100644 --- a/TC1/http_server/web/index.html +++ b/TC1/http_server/web/index.html @@ -38,9 +38,9 @@
@@ -65,19 +65,54 @@