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:
Emil Lindqvist 2021-01-13 15:39:48 +01:00 committed by Jukka Rissanen
commit 09e9736b4b

View file

@ -380,8 +380,15 @@ static ssize_t send_socket_data(void *obj,
/* Wait for prompt '@' */ /* Wait for prompt '@' */
k_sem_take(&mdata.sem_prompt, K_FOREVER); 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 /* Reset response semaphore before sending data
* So that we are sure that we won't use a previously pending one * So that we are sure that we won't use a previously pending one