From 5c824f6f12a0827adfa51a7c7273a7682ad9ad0c Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Fri, 31 Jul 2020 17:16:10 +0200 Subject: [PATCH] nrf802154: fix set_tx_power function --- cpu/nrf52/radio/nrf802154/nrf802154.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/nrf52/radio/nrf802154/nrf802154.c b/cpu/nrf52/radio/nrf802154/nrf802154.c index 13640e574a..596566ab7e 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154.c @@ -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) {