8000 Merge pull request #178 from pycom/release_pygate_v1.20.2.rc11 · pycom/pycom-micropython-sigfox@aeabdce · GitHub
[go: up one dir, main page]

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

Commit aeabdce

Browse files
authored
Merge pull request #178 from pycom/release_pygate_v1.20.2.rc11
Release pygate v1.20.2.rc11
2 parents 13594f3 + 781f369 commit aeabdce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

esp32/mods/modlte.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(lte_ue_coverage_obj, lte_ue_coverage);
13821382
STATIC mp_obj_t lte_reset(mp_obj_t self_in) {
13831383
lte_check_init();
13841384
lte_disconnect(self_in);
1385+
if (!lte_push_at_command("AT+CFUN=0", LTE_RX_TIMEOUT_MAX_MS)) {
1386+
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
1387+
lte_push_at_command("AT+CFUN=0", LTE_RX_TIMEOUT_MAX_MS);
1388+
}
1389+
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
13851390
lte_push_at_command("AT^RESET", LTE_RX_TIMEOUT_MAX_MS);
13861391
lteppp_set_state(E_LTE_IDLE);
13871392
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);

0 commit comments

Comments
 (0)
0