mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +00:00
[nrf52840] improve timeslot_request in timeslot_request_prepare (#2649)
This commit is contained in:
committed by
Jonathan Hui
parent
d3b26a0558
commit
ec59d7ef70
+4
-2
@@ -327,12 +327,14 @@ static void timeslot_request(void)
|
||||
{
|
||||
timeslot_request_prepare();
|
||||
|
||||
m_timeslot_state = TIMESLOT_STATE_REQUESTED;
|
||||
|
||||
// Request timeslot from SoftDevice.
|
||||
uint32_t err_code = sd_radio_request(&m_request);
|
||||
|
||||
if (err_code == NRF_SUCCESS)
|
||||
if (err_code != NRF_SUCCESS)
|
||||
{
|
||||
m_timeslot_state = TIMESLOT_STATE_REQUESTED;
|
||||
m_timeslot_state = TIMESLOT_STATE_IDLE;
|
||||
}
|
||||
|
||||
nrf_802154_log(EVENT_TIMESLOT_REQUEST, m_request.params.earliest.length_us);
|
||||
|
||||
Reference in New Issue
Block a user