No, it was just me doing a sloppy integration the first time, with only 1 second resolution on the jshGetRTCSystemTime(). This caused it to wake up, then wait for the 1 second tick, so it could update the LEDs. The time it actually spent awake was highly dependent on the sync between the sleep-timer and the 1 second tick.
Now that the jshGetRTCSystemTime() has sub-ms resolution it wakes up and immediately sees that it's the time to update the LEDs.
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.
No, it was just me doing a sloppy integration the first time, with only 1 second resolution on the
jshGetRTCSystemTime()
. This caused it to wake up, then wait for the 1 second tick, so it could update the LEDs. The time it actually spent awake was highly dependent on the sync between the sleep-timer and the 1 second tick.Now that the
jshGetRTCSystemTime()
has sub-ms resolution it wakes up and immediately sees that it's the time to update the LEDs.