diff --git a/src/platformio.ini b/src/platformio.ini index e9e63465..f983ca99 100644 --- a/src/platformio.ini +++ b/src/platformio.ini @@ -334,6 +334,7 @@ build_flags = ${env.build_flags} -DENABLE_MQTT -DPLUGIN_DISPLAY -DENABLE_HISTORY + -DPLUGIN_ZEROEXPORT -DSPI_HAL -DDEF_NRF_CS_PIN=37 -DDEF_NRF_CE_PIN=38 diff --git a/src/web/html/setup.html b/src/web/html/setup.html index faf88c82..54bfdb40 100644 --- a/src/web/html/setup.html +++ b/src/web/html/setup.html @@ -305,8 +305,8 @@ - +
{#ZE} @@ -318,7 +318,7 @@
- +
{#BTN_REBOOT_SUCCESSFUL_SAVE}
@@ -1262,7 +1262,6 @@ } /*IF_PLUGIN_ZEROEXPORT*/ - // Plugin ZeroExport function ZeroExportGroup_Modal(obj, ivObj) { // Tab_General @@ -1564,13 +1563,11 @@ } - // Plugin ZeroExport - Ende /*ENDIF_PLUGIN_ZEROEXPORT*/ function parseZeroExport(obj, type) { /*IF_PLUGIN_ZEROEXPORT*/ - // Plugin ZeroExport // enabled document.getElementsByName("ze_enabled")[0].checked = obj["enabled"]; @@ -1623,20 +1620,12 @@ e.append(ml("div", {class: "row my-3"}, ml("div", {class: "col a-r"}, ml("input", {type: "button", value: "{#BTN_INV_ADD}", class: "btn", onclick: function() { ZeroExportGroup_Modal(add); }}, null)))); } -// ivGlob(obj); - - // Plugin ZeroExport - Ende - - /*ELIF_PLUGIN_ZEROEXPORT*/ - var e = document.getElementById("zeroExport"); - e.remove(); - + /*ELSE*/ var e = document.getElementById("zeroExport_button"); e.textContent += " (only for ESP32-S3 available)"; e.disabled = true; element.classList.add("disabled"); /*ENDIF_PLUGIN_ZEROEXPORT*/ - } function parse(root) {