We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1f8ad commit 01d8d10Copy full SHA for 01d8d10
hal/transport/RF24/driver/RF24.cpp
@@ -409,7 +409,7 @@ LOCAL int16_t RF24_getTxPowerLevel(void)
409
LOCAL uint8_t RF24_getTxPowerPercent(void)
410
{
411
// report TX level in %, 0 (LOW) = 25%, 3 (MAX) = 100
412
- const uint8_t result = 25 + (((RF24_readByteRegister(RF24_REG_RF_SETUP) >> 2) & 3) * 25);
+ const uint8_t result = 25 + (((RF24_readByteRegister(RF24_REG_RF_SETUP) >> 1) & 3) * 25);
413
return result;
414
}
415
LOCAL bool RF24_setTxPowerLevel(const uint8_t newPowerLevel)
0 commit comments