Log TX power after limits applyng and store it in config (#7065)

* Log and save in config lora tx_power after limits applyng

* Log and save in config lora tx_power after limits applyng

* Trunk fmt

* Remove duplicate logic

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Max
2025-07-01 16:47:42 +03:00
committed by GitHub
parent baf0e9c7e6
commit 3ea96bb6e1
7 changed files with 14 additions and 22 deletions

View File

@@ -62,10 +62,7 @@ template <typename T> bool SX128xInterface<T>::init()
RadioLibInterface::init();
limitPower();
if (power > SX128X_MAX_POWER) // This chip has lower power limits than some
power = SX128X_MAX_POWER;
limitPower(SX128X_MAX_POWER);
preambleLength = 12; // 12 is the default for this chip, 32 does not RX at all