diff --git a/src/lib/spinel/spinel_driver.cpp b/src/lib/spinel/spinel_driver.cpp index b953d2969..d88d55df9 100644 --- a/src/lib/spinel/spinel_driver.cpp +++ b/src/lib/spinel/spinel_driver.cpp @@ -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;