From ba894ae95b23707b642cec332cb73f0941b18ff6 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 30 Apr 2022 07:08:59 -0500 Subject: [PATCH] Use sx126x macro (#1424) --- src/mesh/SX126xInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/SX126xInterface.cpp b/src/mesh/SX126xInterface.cpp index 901c6e035..2cde9845a 100644 --- a/src/mesh/SX126xInterface.cpp +++ b/src/mesh/SX126xInterface.cpp @@ -136,8 +136,8 @@ bool SX126xInterface::reconfigure() if (err != ERR_NONE) RECORD_CRITICALERROR(CriticalErrorCode_InvalidRadioSetting); - if (power > 22) // This chip has lower power limits than some - power = 22; + if (power > SX126X_MAX_POWER) // This chip has lower power limits than some + power = SX126X_MAX_POWER; err = lora.setOutputPower(power); assert(err == ERR_NONE);