mirror of
https://github.com/espressif/openthread.git
synced 2026-09-12 20:20:04 +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);
|
OT_UNUSED_VARIABLE(aInstance);
|
||||||
|
|
||||||
if (nrf_802154_sleep_if_idle())
|
if (nrf_802154_sleep_if_idle() == NRF_802154_SLEEP_ERROR_NONE)
|
||||||
{
|
{
|
||||||
clearPendingEvents();
|
clearPendingEvents();
|
||||||
}
|
}
|
||||||
@@ -827,7 +827,7 @@ void nrf5RadioProcess(otInstance *aInstance)
|
|||||||
|
|
||||||
if (isPendingEventSet(kPendingEventSleep))
|
if (isPendingEventSet(kPendingEventSleep))
|
||||||
{
|
{
|
||||||
if (nrf_802154_sleep_if_idle())
|
if (nrf_802154_sleep_if_idle() == NRF_802154_SLEEP_ERROR_NONE)
|
||||||
{
|
{
|
||||||
resetPendingEvent(kPendingEventSleep);
|
resetPendingEvent(kPendingEventSleep);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user