mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 21:50:08 +00:00
[spinel] recover from RCP failure in Init (#7320)
This commit is contained in:
@@ -239,6 +239,14 @@ void RadioSpinel<InterfaceType, ProcessContextType>::Init(bool aResetRadio,
|
||||
}
|
||||
|
||||
SuccessOrExit(error = WaitResponse());
|
||||
|
||||
#if OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT > 0
|
||||
while (mRcpFailed)
|
||||
{
|
||||
RecoverFromRcpFailure();
|
||||
}
|
||||
#endif
|
||||
|
||||
VerifyOrExit(mIsReady, error = OT_ERROR_FAILED);
|
||||
|
||||
SuccessOrExit(error = CheckSpinelVersion());
|
||||
|
||||
Reference in New Issue
Block a user