mirror of
https://github.com/espressif/openthread.git
synced 2026-10-28 18:24:37 +00:00
ncp: Fix for CMD_RESET behavior. (#95)
This commit is contained in:
committed by
Jonathan Hui
parent
a7cf10e44c
commit
70bf0b768b
@@ -766,7 +766,8 @@ void NcpBase::CommandHandler_NOOP(uint8_t header, unsigned int command, const ui
|
||||
void NcpBase::CommandHandler_RESET(uint8_t header, unsigned int command, const uint8_t *arg_ptr, uint16_t arg_len)
|
||||
{
|
||||
// TODO: Figure out how to actually perform a reset.
|
||||
SendLastStatus(0, SPINEL_STATUS_RESET_SOFTWARE);
|
||||
otInit();
|
||||
SendLastStatus(SPINEL_HEADER_FLAG | SPINEL_HEADER_IID_0, SPINEL_STATUS_RESET_SOFTWARE);
|
||||
}
|
||||
|
||||
void NcpBase::CommandHandler_PROP_VALUE_GET(uint8_t header, unsigned int command, const uint8_t *arg_ptr,
|
||||
|
||||
Reference in New Issue
Block a user