[posix-app] unsupported radio file error (#3247)

This commit is contained in:
Yakun Xu
2018-11-01 09:11:30 -07:00
committed by Jonathan Hui
parent 9a7fc691b1
commit 0743816acd
+5
View File
@@ -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());