Actually setDeepSleep doesn't sleep immediately, it just sets a flag. You only actually need to call it once in the whole program, so any subsequent calls don't do anything.
I'm not really sure what the issue could be - my only guess so far would be that it's using the external real-time clock, and that it's unstable - either stopping, or oscillating wildly causing time to run too quickly. It's just a guess though - it's very hard to know anything without a bit more info.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Actually
setDeepSleep
doesn't sleep immediately, it just sets a flag. You only actually need to call it once in the whole program, so any subsequent calls don't do anything.I'm not really sure what the issue could be - my only guess so far would be that it's using the external real-time clock, and that it's unstable - either stopping, or oscillating wildly causing time to run too quickly. It's just a guess though - it's very hard to know anything without a bit more info.