You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed elsewhere, my suggestion is that run_every=True does not end the deep_sleep() call, but rather wakes briefly to execute the run every and then resumes the deep sleep. The deep sleep only ends when the given timeout expires, or a wake_on event occurs. In particular, power.deep_sleep(run_every=True) will never return. (And maybe we can then make run_every=True the default.)
microbit-carlos
changed the title
Update power.deep_sleep to sleep until the next run_every and then go back to sleep
Update power.deep_sleep to sleep until the next run_everySep 6, 2022
Originally posted by @dpgeorge in bbcmicrobit/micropython#754 (comment)
The text was updated successfully, but these errors were encountered: