mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 00:27:47 +00:00
[spi-hdlc-adapter] reset NCP/RCP on exit (#3801)
This commit triggers resetting NCP/RCP on exit, which ensures NCP/RCP get back to uninitialized state so that they will not respond to 15.4 messages. Note, host should disable soft reset by passing `--no-reset` for RCP. Thus OpenThread POSIX app doesn't need to reset RCP when it exits.
This commit is contained in:
@@ -1983,6 +1983,9 @@ int main(int argc, char *argv[])
|
||||
bail:
|
||||
syslog(LOG_NOTICE, "Shutdown. (sRet = %d)", sRet);
|
||||
|
||||
syslog(LOG_NOTICE, "Reset NCP/RCP");
|
||||
trigger_reset();
|
||||
|
||||
if (sRet == EXIT_QUIT)
|
||||
{
|
||||
sRet = EXIT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user