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

Commit a3a8dec

Browse files
author
iwahdan88
committed
esp32/modlte: minor fix
1 parent 52ece9c commit a3a8dec

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
@@ -1029,10 +1029,10 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(lte_reset_obj, lte_reset);
10291029
STATIC mp_obj_t lte_factory_reset(mp_obj_t self_in) {
10301030
lte_check_init();
10311031
lte_disconnect(self_in);
1032-
lte_obj.init = false;
10331032
if (!lte_push_at_command("AT&F", LTE_RX_TIMEOUT_MAX_MS * 2)) {
10341033
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, mpexception_os_operation_failed));
10351034
}
1035+
lte_obj.init = false;
10361036
lte_push_at_command("AT^RESET", LTE_RX_TIMEOUT_MAX_MS);
10371037
lteppp_set_state(E_LTE_IDLE);
10381038
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);

0 commit comments

Comments
 (0)