mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 05:53:45 +00:00
[cc2538] fix a typo in energy scan (#5748)
This commit is contained in:
@@ -630,7 +630,7 @@ int8_t otPlatRadioGetRssi(otInstance *aInstance)
|
||||
{
|
||||
rssi = HWREG(RFCORE_XREG_RSSI) & 0xff;
|
||||
|
||||
if (rssi <= cc2538RadioGetRssiOffset() - 128)
|
||||
if (rssi > cc2538RadioGetRssiOffset() - 128)
|
||||
{
|
||||
rssi -= cc2538RadioGetRssiOffset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user