mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 13:29:54 +00:00
[spinel] allow RCP reset if not multipan architecture (#11277)
This VerifyOrExit will prevent the RCP recovery process from resetting the RCP. The comment highlights that given a multipan architecture, it is not viable to reset the RCP once it is declared ready. In non-multipan architectures, it is still viable and desirable to reset the RCP as part of recovering it. See https://github.com/orgs/openthread/discussions/11273
This commit is contained in:
@@ -124,8 +124,10 @@ void SpinelDriver::ResetCoprocessor(bool aSoftwareReset)
|
||||
bool hardwareReset;
|
||||
bool resetDone = false;
|
||||
|
||||
#if OPENTHREAD_CONFIG_MULTIPAN_RCP_ENABLE
|
||||
// Avoid resetting the device twice in a row in Multipan RCP architecture
|
||||
VerifyOrExit(!mIsCoprocessorReady, resetDone = true);
|
||||
#endif
|
||||
|
||||
mWaitingKey = SPINEL_PROP_LAST_STATUS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user