From fbeabf7358c7c00c4d6878a2bbcdd1d4a67e3676 Mon Sep 17 00:00:00 2001 From: lumapu Date: Mon, 27 Mar 2023 15:24:25 +0200 Subject: [PATCH] fix WebUI --- src/web/html/setup.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/html/setup.html b/src/web/html/setup.html index 7d910c91..6157d63d 100644 --- a/src/web/html/setup.html +++ b/src/web/html/setup.html @@ -676,7 +676,7 @@ } } - function parseNrfRadio(obj, type) { + function parseNrfRadio(obj, type, system) { var e = document.getElementById("rf24"); if ("ESP8266" == type) { pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq']]; @@ -708,7 +708,7 @@ ); } - function parseCmtRadio(obj, type) { + function parseCmtRadio(obj, type, system) { var e = document.getElementById("cmt"); var en = inp("cmtEnable", null, null, ["cb"], "cmtEnable", "checkbox"); en.checked = obj["en"]; @@ -817,9 +817,9 @@ parseNtp(root["ntp"]); parseSun(root["sun"]); parsePinout(root["pinout"], root["system"]["esp_type"], root["system"]); - parseNrfRadio(root["radioNrf"], root["system"]["esp_type"]); + parseNrfRadio(root["radioNrf"], root["system"]["esp_type"], root["system"]); if(root["generic"]["esp_type"] == "ESP32") - parseCmtRadio(root["radioCmt"], root["system"]["esp_type"]); + parseCmtRadio(root["radioCmt"], root["system"]["esp_type"], root["system"]); parseSerial(root["serial"]); parseDisplay(root["display"], root["system"]["esp_type"], root["system"]); getAjax("/api/inverter/list", parseIv);