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

Commit 7c8ec7a

Browse files
author
iwahdan88
committed
esp32/lte: fixed high deepsleep current issue when LTE not initialised
1 parent d02d45c commit 7c8ec7a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

esp32/lte/lteppp.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,10 @@ lte_legacy_t lteppp_get_legacy(void) {
265265
}
266266

267267
void lteppp_deinit (void) {
268-
connect_lte_uart();
268+
269+
// enable airplane low power mode
270+
lteppp_send_at_cmd("AT!=\"setlpm airplane=1 enable=1\"", LTE_RX_TIMEOUT_MAX_MS);
271+
269272
uart_set_hw_flow_ctrl(LTE_UART_ID, UART_HW_FLOWCTRL_DISABLE, 0);
270273
uart_set_rts(LTE_UART_ID, false);
271274
xSemaphoreTake(xLTESem, portMAX_DELAY);

0 commit comments

Comments
 (0)