[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.
This commit is contained in:
Łukasz Duda
2020-01-06 10:05:09 -08:00
committed by Jonathan Hui
parent 568fab148b
commit aa9a45d212
+1 -1
View File
@@ -571,7 +571,7 @@ otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower)
}
else
{
*aPower = sDefaultTxPower;
*aPower = nrf_802154_tx_power_get();
}
return error;