Skip to content

Commit 0287daf

Browse files
haakonehrlubos
authored andcommitted
samples: cellular: modem_shell: increased sleep time for 1st info read
increased sleep time before first info read to prevent modem failures for some nrf91 dks. Signed-off-by: Håkon Edøy Hanssen <[email protected]>
1 parent 1ca722f commit 0287daf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/cellular/modem_shell/src/link/link.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,10 @@ static void link_registered_work(struct k_work *unused)
180180
/* Activate the deactive ones that have been connected by us */
181181
link_api_activate_mosh_contexts(pdn_act_status_arr, PDN_CONTEXTS_MAX);
182182

183-
/* Seems that 1st info read fails without this. Thus, let modem have some time */
184-
k_sleep(K_MSEC(1500));
183+
/* PDN activation may take some time. Thus, let modem have some time
184+
* before reading the PDN information.
185+
*/
186+
k_sleep(K_MSEC(2000));
185187

186188
link_api_modem_info_get_for_shell(true);
187189
}

0 commit comments

Comments
 (0)