nrf802154: fix set_tx_power function

This commit is contained in:
Jose Alamos 2020-07-31 17:16:10 +02:00
parent ecab75b529
commit 5c824f6f12

View File

@ -215,7 +215,7 @@ static void _set_txpower(int16_t txpower)
if (txpower > 8) {
NRF_RADIO->TXPOWER = RADIO_TXPOWER_TXPOWER_Pos8dBm;
}
if (txpower > 1) {
else if (txpower > 1) {
NRF_RADIO->TXPOWER = (uint32_t)txpower;
}
else if (txpower > -1) {