mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 15:17:46 +00:00
[nrf528xx] check nrf_802154_sleep_if_idle() return status to set correct pending event (#5504)
This commit is contained in:
@@ -422,7 +422,7 @@ otError otPlatRadioSleep(otInstance *aInstance)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
|
||||
if (nrf_802154_sleep_if_idle())
|
||||
if (nrf_802154_sleep_if_idle() == NRF_802154_SLEEP_ERROR_NONE)
|
||||
{
|
||||
clearPendingEvents();
|
||||
}
|
||||
@@ -827,7 +827,7 @@ void nrf5RadioProcess(otInstance *aInstance)
|
||||
|
||||
if (isPendingEventSet(kPendingEventSleep))
|
||||
{
|
||||
if (nrf_802154_sleep_if_idle())
|
||||
if (nrf_802154_sleep_if_idle() == NRF_802154_SLEEP_ERROR_NONE)
|
||||
{
|
||||
resetPendingEvent(kPendingEventSleep);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user