mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 07:07:47 +00:00
[mac] assert on failure of otPlatRadioEnable() (#3592)
This commit is contained in:
committed by
Jonathan Hui
parent
b08fab42bb
commit
e02c970269
@@ -135,11 +135,11 @@ otError SubMac::Enable(void)
|
||||
VerifyOrExit(mState == kStateDisabled);
|
||||
|
||||
SuccessOrExit(error = otPlatRadioEnable(&GetInstance()));
|
||||
error = otPlatRadioSleep(&GetInstance());
|
||||
assert(error == OT_ERROR_NONE);
|
||||
SuccessOrExit(error = otPlatRadioSleep(&GetInstance()));
|
||||
SetState(kStateSleep);
|
||||
|
||||
exit:
|
||||
assert(error == OT_ERROR_NONE);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user