On a user's Enduro 2, my watchface gets confused around midnight
It turns out, the system calls onExitSleep() at 00:00:00, seemingly out of the blue (while the watch is stationary), and the watchface doesn't receive a call to onEnterSleep() a few seconds later, when the watch goes back to sleep (and onUpdate() is subsequently called only once a minute again).
The issue can be reproduced (happens every night) on this user's watch.
The debug log extracted from the watch is as follows. "upd" is printed in onUpdate(), "exi" in onExitSleep() and "ent" is missing. true/false is the value of the _isAwake flag of my WF code.
23:55:00 upd false23:56:00 upd false23:57:00 upd false23:58:00 upd false23:59:00 upd false00:00:00 upd false00:00:00 exi true00:00:00 upd true00:00:00 upd true00:00:00 upd true00:00:01 upd true00:00:02 upd true00:00:03 upd true00:00:04 upd true00:00:05 upd true00:00:06 upd true00:00:06 upd true00:01:00 upd true00:02:00 upd true00:03:00 upd true00:04:00 upd true00:05:00 upd true
Enduro 2, firmware version 10.46, 11.28 (Sleep and Airplane modes on)
Connect IQ SDK 4.1.7
Visual Studio Code Monkey C v1.0.7
Visual Studio Code Version 1.75.1 running on Windows 11