From aa9a45d2126462aebf5a40bd0e1fea5309a1d793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Duda?= Date: Mon, 6 Jan 2020 19:05:09 +0100 Subject: [PATCH] [nrf528xx] return the TX power which was actually set in the register (#4451) This commit ensures that TX Power returned via otPlatRadioGetTransmitPower is one that is actually set in the register. E.g. even if TX power is set to 100 via otPlatRadioSetTransmitPower, the maximum power is 8 for nRF52840. --- examples/platforms/nrf528xx/src/radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platforms/nrf528xx/src/radio.c b/examples/platforms/nrf528xx/src/radio.c index ac4af4580..d97aaab2c 100644 --- a/examples/platforms/nrf528xx/src/radio.c +++ b/examples/platforms/nrf528xx/src/radio.c @@ -571,7 +571,7 @@ otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower) } else { - *aPower = sDefaultTxPower; + *aPower = nrf_802154_tx_power_get(); } return error;