espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.75k stars 739 forks source link

Test validity of wakeup pin for ESP32 deep sleep #2368

Closed cwilling closed 1 year ago

cwilling commented 1 year ago

PR #2358 added wakeup from deep sleep by setting a GPIO pin. However not all GPIOs are valid wakeup pins and could result in a deep sleep without any way to wake up. This PR attempts to ensure that only a valid RTC GPIO is selected before sending the device into deep sleep.

gfwilliams commented 1 year ago

Looks great - thanks!