mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 09:57:47 +00:00
[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:
committed by
Jonathan Hui
parent
568fab148b
commit
aa9a45d212
@@ -571,7 +571,7 @@ otError otPlatRadioGetTransmitPower(otInstance *aInstance, int8_t *aPower)
|
||||
}
|
||||
else
|
||||
{
|
||||
*aPower = sDefaultTxPower;
|
||||
*aPower = nrf_802154_tx_power_get();
|
||||
}
|
||||
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user