mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 10:47:46 +00:00
Miscellaneous MAC cleanup. (#706)
- Call otPlatRadioReceive() on SetChannel(). - Only call NextOperation() in the idle state. - Call otPlatRadioReceive() with the proper channel in HandleBeginTransmit(). - Remove unnecessary mBeginTransmit tasklet.
This commit is contained in:
@@ -439,7 +439,7 @@ ThreadError otPlatRadioTransmit(otInstance *aInstance)
|
||||
ThreadError error = kThreadError_Busy;
|
||||
(void)aInstance;
|
||||
|
||||
if ((sState == kStateTransmit && !sAckWait) || sState == kStateReceive)
|
||||
if (sState == kStateReceive)
|
||||
{
|
||||
error = kThreadError_None;
|
||||
sState = kStateTransmit;
|
||||
|
||||
Reference in New Issue
Block a user