QUERY · ISSUE
ESP32 timer wake up repeating
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
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.