From f4f0c5a7d3832c5c3ac11b8fb04b9a76aee534a7 Mon Sep 17 00:00:00 2001 From: Pavel S Date: Sun, 25 Jan 2026 16:13:58 +0100 Subject: [PATCH] adjust power setting --- data_embed/index.html | 4 ++-- src/lora_utils.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data_embed/index.html b/data_embed/index.html index ca75c85..55f339b 100644 --- a/data_embed/index.html +++ b/data_embed/index.html @@ -969,8 +969,8 @@ name="lora.power" id="lora.power" placeholder="20" - min="0" - max="20" + min="-9" + max="22" step="1" class="form-control" required="" diff --git a/src/lora_utils.cpp b/src/lora_utils.cpp index 000b0eb..b3fbe6a 100644 --- a/src/lora_utils.cpp +++ b/src/lora_utils.cpp @@ -119,7 +119,7 @@ namespace LoRa_Utils { #endif*/ #ifdef HAS_1W_LORA // Ebyte E22 400M30S (SX1268) / 900M30S (SX1262) / Ebyte E220 400M30S (LLCC68) - state = radio.setOutputPower(Config.loramodule.power); // max value 20dB for 1W modules as they have Low Noise Amp + state = radio.setOutputPower(Config.loramodule.power > 20 ? 20 : Config.loramodule.power); // max value 20dB for 1W modules as they have Low Noise Amp radio.setCurrentLimit(140); // to be validated (100 , 120, 140)? #endif #if defined(HAS_SX1278) || defined(HAS_SX1276) @@ -127,7 +127,7 @@ namespace LoRa_Utils { radio.setCurrentLimit(100); // to be validated (80 , 100)? #endif #if (defined(HAS_SX1268) || defined(HAS_SX1262)) && !defined(HAS_1W_LORA) - state = radio.setOutputPower(Config.loramodule.power + 2); // values available: 10, 17, 22 --> if 20 in tracker_conf.json it will be updated to 22. + state = radio.setOutputPower(Config.loramodule.power); radio.setCurrentLimit(140); #endif