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

Commit 41bc37b

Browse files
author
iwahdan88
committed
Minor Fix for modlte
1 parent 02ca442 commit 41bc37b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

esp32/mods/modlte.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,10 @@ STATIC mp_obj_t lte_attach(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t
630630
if (!lte_push_at_command("AT+CFUN=1", LTE_RX_TIMEOUT_MAX_MS)) {
631631
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, mpexception_os_operation_failed));
632632
}
633+
else
634+
{
635+
lte_push_at_command("AT!=\"setlpm airplane=1 enable=1\"", LTE_RX_TIMEOUT_MAX_MS);
636+
}
633637
}
634638
return mp_const_none;
635639
}

0 commit comments

Comments
 (0)