Attempt to fix incorrect TX power being returned (SX127X)

This commit is contained in:
jacob.eva 2024-09-16 18:09:33 +01:00
parent 2cdf2951e6
commit 7ab3825aaa
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -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;