Skip to content

Commit 01d8d10

Browse files
authored
RF24: Fix wrongly reported TX level (#1457)
1 parent 8f1f8ad commit 01d8d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/transport/RF24/driver/RF24.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ LOCAL int16_t RF24_getTxPowerLevel(void)
409409
LOCAL uint8_t RF24_getTxPowerPercent(void)
410410
{
411411
// 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);
412+
const uint8_t result = 25 + (((RF24_readByteRegister(RF24_REG_RF_SETUP) >> 1) & 3) * 25);
413413
return result;
414414
}
415415
LOCAL bool RF24_setTxPowerLevel(const uint8_t newPowerLevel)

0 commit comments

Comments
 (0)