8000 Merge of Public repo [release-candidate] Head. · pycom/pycom-micropython-sigfox@0b6307f · 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 0b6307f

Browse files
author
iwahdan88
committed
Merge of Public repo [release-candidate] Head.
1 parent c16daf9 commit 0b6307f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

esp32/mods/modlora.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ STATIC mp_obj_t lora_cli(mp_obj_t self_in, mp_obj_t data) {
22962296
mp_hal_delay_ms(300);
22972297
timeout -= 300;
22982298
}
2299-
2299+
23002300
if (meshCliOutputDone) {
23012301
// micropy needs to output meshCliOutput string in size of meshCliOutputLen
23022302
mp_obj_t res = mp_obj_new_str(meshCliOutput, meshCliOutputLen);

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)
0