Skip to content

Commit 778b9cb

Browse files
committed
ports/esp32/*: Updated to work with latest esp32 branch and IDF
1 parent dd6f0a3 commit 778b9cb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ports/esp32/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ ESPIDF_ESP32_O = $(addprefix $(ESPCOMP)/esp32/,\
243243
dport_access.o \
244244
wifi_init.o \
245245
wifi_internal.o \
246+
sleep_modes.o \
246247
)
247248

248249
ESPIDF_HEAP_O = $(addprefix $(ESPCOMP)/heap/,\

ports/esp32/modmachine.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,21 @@ STATIC mp_obj_t machine_deepsleep(size_t n_args, const mp_obj_t *pos_args, mp_ma
8282
mp_int_t expiry = args[ARG_sleep_ms].u_int;
8383

8484
if (expiry != 0) {
85-
esp_deep_sleep_enable_timer_wakeup(expiry * 1000);
85+
esp_sleep_enable_timer_wakeup(expiry * 1000);
8686
}
8787

8888
if (machine_rtc_config.ext0_pin != -1) {
89-
esp_deep_sleep_enable_ext0_wakeup(machine_rtc_config.ext0_pin, machine_rtc_config.ext0_level ? 1 : 0);
89+
esp_sleep_enable_ext0_wakeup(machine_rtc_config.ext0_pin, machine_rtc_config.ext0_level ? 1 : 0);
9090
}
9191

9292
if (machine_rtc_config.ext1_pins != 0) {
93-
esp_deep_sleep_enable_ext1_wakeup(
93+
esp_sleep_enable_ext1_wakeup(
9494
machine_rtc_config.ext1_pins,
9595
machine_rtc_config.ext1_level ? ESP_EXT1_WAKEUP_ANY_HIGH : ESP_EXT1_WAKEUP_ALL_LOW);
9696
}
9797

9898
if (machine_rtc_config.wake_on_touch) {
99-
esp_deep_sleep_enable_touchpad_wakeup();
99+
esp_sleep_enable_touchpad_wakeup();
100100
}
101101

102102
esp_deep_sleep_start();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy