From 7ab3825aaa24aae9f5cae6ac476c857c8ef31084 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Mon, 16 Sep 2024 18:09:33 +0100 Subject: [PATCH] Attempt to fix incorrect TX power being returned (SX127X) --- Radio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Radio.cpp b/Radio.cpp index fe45ceb..7f4e8f1 100644 --- a/Radio.cpp +++ b/Radio.cpp @@ -1376,7 +1376,7 @@ void sx127x::setTxPower(int level, int outputPin) { } } -uint8_t sx127x::getTxPower() { byte txp = readRegister(REG_PA_CONFIG_7X); return txp; } +uint8_t sx127x::getTxPower() { uint8_t txp = readRegister(REG_PA_CONFIG_7X); return (txp & 0xF0); } void sx127x::setFrequency(uint32_t frequency) { _frequency = frequency;