From 033d9f04e6a5777bad569abc95b3ec4d37b7864a Mon Sep 17 00:00:00 2001 From: lumapu Date: Thu, 17 Nov 2022 21:13:33 +0100 Subject: [PATCH] fix #428 (two XHR requests at the same time results in strange behavior) --- src/web/html/serial.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/html/serial.html b/src/web/html/serial.html index ada7657d..b36d2350 100644 --- a/src/web/html/serial.html +++ b/src/web/html/serial.html @@ -99,6 +99,7 @@ parseESP(obj); window.setInterval("getAjax('/api/system', parseSys)", 10000); exeOnce = false; + getAjax("/api/setup", parse); } } @@ -150,7 +151,6 @@ }, false); } - getAjax("/api/system", parseSys); // only for test function ctrlCb(obj) { @@ -210,7 +210,7 @@ getAjax("/api/ctrl", ctrlCb, "POST", JSON.stringify(obj)); }); - getAjax("/api/setup", parse); + getAjax("/api/system", parseSys);