mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-25 03:10:01 +00:00
nimble/phy/nrf: Fix setting -3dBm power on nRF5340
There was a typo which would result in -4 dBm being set instead.
This commit is contained in:
@@ -1817,7 +1817,7 @@ ble_phy_txpower_round(int dbm)
|
||||
}
|
||||
|
||||
if (dbm >= (int8_t)RADIO_TXPOWER_TXPOWER_Neg3dBm) {
|
||||
return (int8_t)RADIO_TXPOWER_TXPOWER_Neg4dBm;
|
||||
return (int8_t)RADIO_TXPOWER_TXPOWER_Neg3dBm;
|
||||
}
|
||||
|
||||
if (dbm >= (int8_t)RADIO_TXPOWER_TXPOWER_Neg4dBm) {
|
||||
|
||||
Reference in New Issue
Block a user