From c0d67acffd48bdafc1e444d890eb4422fdfdbc09 Mon Sep 17 00:00:00 2001 From: Ricardo Guzman Date: Mon, 5 Oct 2026 14:50:19 -0300 Subject: [PATCH] save always fixed value --- data_embed/index.html | 2 +- include/lora_utils.h | 1 + src/web_utils.cpp | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data_embed/index.html b/data_embed/index.html index a05e683..6465aa8 100644 --- a/data_embed/index.html +++ b/data_embed/index.html @@ -1421,7 +1421,7 @@ body{background:var(--msh-bg);color:var(--msh-text);font-family:"Inter",system-u
#include "network_manager.h" #include "configuration.h" +#include "lora_utils.h" #include "ota_utils.h" #include "web_utils.h" #include "map_utils.h" @@ -277,7 +278,7 @@ namespace WEB_Utils { Config.loramodule.txSpreadingFactor = getParamIntSafe("lora.txSpreadingFactor", Config.loramodule.txSpreadingFactor); Config.loramodule.txCodingRate4 = getParamIntSafe("lora.txCodingRate4", Config.loramodule.txCodingRate4); Config.loramodule.txSignalBandwidth = getParamIntSafe("lora.txSignalBandwidth", Config.loramodule.txSignalBandwidth); - Config.loramodule.power = getParamIntSafe("lora.power", Config.loramodule.power); + Config.loramodule.power = LoRa_Utils::validPower(getParamIntSafe("lora.power", Config.loramodule.power)); // saved as the power the radio chip really uses if (Config.loramodule.txActive) Config.loramodule.cadActive = request->hasParam("lora.cadActive", true);