pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
200 stars 166 forks source link

Disentangle machine.sleep() args #511

Open chriskoz opened 3 years ago

chriskoz commented 3 years ago

Adding logic to sleep indefinitely when sleep_time == 0. This allows users to set the second "resume_wifi_ble" argument while still allowing an indefinite sleep time by setting the first argument to 0.

assuming no one is actually using 0 as a real sleep time for some reason.