← index #12579PR #12782
Likely Duplicate · medium · value 5.695
QUERY · ISSUE

ESP32 timer wake up repeating

openby AndreoBotelhoopened 2023-10-03updated 2023-10-24
bugport-esp32

I'm using timer wakeup from light sleep with:

machine.lightsleep(30000) #sleep 30s

after 30 the esp32 wakes, disable peripherals and sleep indefinitely with:

machine.lightsleep()

but the 30s wake timer keeps repeating and didn't find any way to disable wake source

CANDIDATE · PULL REQUEST

esp32 : fix for #7158 - machine.deepsleep() not behaving as expected

mergedby PBrunotopened 2023-10-23updated 2023-10-31
port-esp32

This PR fixes machine.deepsleep() waking up the board after a delay d, for example when a machine.lightsleep(d) call was issued previously. This is because previous wake-sources remain active, whereas machine.deepsleep() shall put the board to sleep forever as per the
machine.deepsleep documentation

See #7158 for more details on : issue description, reproduction steps and fix implementation.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied