Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 3764541

Browse files
committed
lte_disconnect(): give ATH time to complete
previously, ATH would regularly fail in LTE_RX_TIMEOUT_MIN_MS and then seemingly continue in the background, that's probably the reason for the while{AT} loop afterwards
1 parent 92ffa59 commit 3764541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32/mods/modlte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ STATIC mp_obj_t lte_disconnect(mp_obj_t self_in) {
11871187
lte_pause_ppp();
11881188
}
11891189
lteppp_set_state(E_LTE_ATTACHED);
1190-
lte_push_at_command("ATH", LTE_RX_TIMEOUT_MIN_MS);
1190+
lte_push_at_command("ATH", LTE_RX_TIMEOUT_MAX_MS);
11911191
while (true) {
11921192
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
11931193
if (lte_push_at_command("AT", LTE_RX_TIMEOUT_MAX_MS)) {

0 commit comments

Comments
 (0)