mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
[log] add log to record the RCP restoration state (#7743)
This commit is contained in:
@@ -1671,18 +1671,11 @@ otError RadioSpinel<InterfaceType, ProcessContextType>::WaitResponse(void)
|
||||
do
|
||||
{
|
||||
uint64_t now;
|
||||
uint64_t remain;
|
||||
|
||||
now = otPlatTimeGet();
|
||||
if (end <= now)
|
||||
{
|
||||
HandleRcpTimeout();
|
||||
ExitNow(mError = OT_ERROR_NONE);
|
||||
}
|
||||
remain = end - now;
|
||||
|
||||
if (mSpinelInterface.WaitForFrame(remain) != OT_ERROR_NONE)
|
||||
if ((end <= now) || (mSpinelInterface.WaitForFrame(end - now) != OT_ERROR_NONE))
|
||||
{
|
||||
otLogWarnPlat("Wait for response timeout");
|
||||
HandleRcpTimeout();
|
||||
ExitNow(mError = OT_ERROR_NONE);
|
||||
}
|
||||
@@ -2309,6 +2302,7 @@ void RadioSpinel<InterfaceType, ProcessContextType>::RecoverFromRcpFailure(void)
|
||||
}
|
||||
|
||||
--mRcpFailureCount;
|
||||
otLogNotePlat("RCP recovery is done");
|
||||
|
||||
exit:
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user