Bluetooth: AT: Reset AT and CMD state
Reset AT and COMMAND state to process unsolicited response received after processing result recieved for AT command sent to AG. Change-Id: Id2a5827ce5b098336291696157027699479478cf Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
This commit is contained in:
parent
166a8f762a
commit
4b323cd72e
1 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,10 @@ static int at_state_process_result(struct at_client *at, struct net_buf *buf)
|
|||
}
|
||||
}
|
||||
|
||||
/* Reset the state to process unsolicited response */
|
||||
at->cmd_state = CMD_START;
|
||||
at->state = AT_STATE_START;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue