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

Commit

Permalink
Merge branch 'Release/v1.20' into Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Xykon committed Aug 6, 2020
2 parents f2e04fb + 58398d3 commit 783192e
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 @@ -1349,6 +1349,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 783192e

Please sign in to comment.