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

Commit

Permalink
Merge pull request #178 from pycom/release_pygate_v1.20.2.rc11
Browse files Browse the repository at this point in the history
Release pygate v1.20.2.rc11
  • Loading branch information
peter-pycom authored Aug 25, 2020
2 parents 13594f3 + 781f369 commit aeabdce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esp32/mods/modlte.c
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(lte_ue_coverage_obj, lte_ue_coverage);
STATIC mp_obj_t lte_reset(mp_obj_t self_in) {
lte_check_init();
lte_disconnect(self_in);
if (!lte_push_at_command("AT+CFUN=0", LTE_RX_TIMEOUT_MAX_MS)) {
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
lte_push_at_command("AT+CFUN=0", LTE_RX_TIMEOUT_MAX_MS);
}
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
lte_push_at_command("AT^RESET", LTE_RX_TIMEOUT_MAX_MS);
lteppp_set_state(E_LTE_IDLE);
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
Expand Down

0 comments on commit aeabdce

Please sign in to comment.