Deepsleep acting weird #17603
Unanswered
Slythy
asked this question in
RP2040 / Pico
Replies: 1 comment 8 replies
-
If (and I didn't check the sourcecode) the system relies on the HW Timers and Alarms, then the max time for a wakeup alarm is 2³² × 1E-6s. Which in turn results in almost but not quite 4296s. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a limit to what machine.deepsleep(xxx) can be? I am trying to deepsleep for 24hours and then it wakes up but it does not function doing that.
`first_delay = 2 * 3600 * 1000
pulse1_interval = 24 * 3600 * 1000
prog_interval = 12 * 3600 * 1000
prog_pulses = 14
third_gap = 30 * 60 * 1000
fourth_gap = (1086400 + 23600 - (786400 + 143600 + 30*60)) * 1000`
if I delete the 3600 from it then it all functions correctly. I would assume that machine.deepsleep() is 32bit?
Beta Was this translation helpful? Give feedback.
All reactions