mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 11:47:46 +00:00
[posix-app] unsupported radio file error (#3247)
This commit is contained in:
@@ -540,6 +540,11 @@ void RadioSpinel::Init(const char *aRadioFile, const char *aRadioConfig)
|
||||
VerifyOrExit(mSockFd != -1, error = OT_ERROR_INVALID_ARGS);
|
||||
}
|
||||
#endif // OPENTHREAD_CONFIG_POSIX_APP_ENABLE_PTY_DEVICE
|
||||
else
|
||||
{
|
||||
otLogCritPlat("Radio file '%s' not supported", aRadioFile);
|
||||
exit(OT_EXIT_INVALID_ARGUMENTS);
|
||||
}
|
||||
|
||||
SuccessOrExit(error = SendReset());
|
||||
SuccessOrExit(error = WaitResponse());
|
||||
|
||||
Reference in New Issue
Block a user