drivers: modem: ublox-sara-r4: remove redundant wait after sendto
According to AT commands manual, no wait after prompt '@' is required if using AT+USOST commmand (aka. sendto, only used with UDP). Signed-off-by: Emil Lindqvist <emil@lindq.gr>
This commit is contained in:
parent
33028963c8
commit
09e9736b4b
1 changed files with 9 additions and 2 deletions
|
@ -380,8 +380,15 @@ static ssize_t send_socket_data(void *obj,
|
|||
/* Wait for prompt '@' */
|
||||
k_sem_take(&mdata.sem_prompt, K_FOREVER);
|
||||
|
||||
/* slight pause per spec so that @ prompt is received */
|
||||
k_sleep(MDM_PROMPT_CMD_DELAY);
|
||||
/*
|
||||
* The AT commands manual requires a 50 ms wait
|
||||
* after '@' prompt if using AT+USOWR, but not
|
||||
* if using AT+USOST. This if condition is matched with
|
||||
* the command selection above.
|
||||
*/
|
||||
if (sock->ip_proto != IPPROTO_UDP) {
|
||||
k_sleep(MDM_PROMPT_CMD_DELAY);
|
||||
}
|
||||
|
||||
/* Reset response semaphore before sending data
|
||||
* So that we are sure that we won't use a previously pending one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue