Message app stops the clock? #4020
Replies: 1 comment
-
Posted at 2022-02-07 by @gfwilliams Which clock app do you have? Gadgetbridge updates the time on Bangle.js when it connects - I guess it's possible that when the time is updated the clock you're using gets confused and stops updating itself? Posted at 2022-02-07 by RaoulDuke ContourClock, I am the author of that clock. Posted at 2022-02-07 by myxor It could be the same issue as described in http://forum.espruino.com/conversations/372748/newest/ Posted at 2022-02-07 by RaoulDuke I played around with the time on my phone, but it didn´t stop the clock.
to
, which seems to do exactly the same. Posted at 2022-02-08 by @fanoush
no, this is not synced to real time so you may draw next minute too late Posted at 2022-02-08 by HughB Sure but in practice does anyone care if the clock face updates 1s too late once per minute. Maybe the actual difference is 100ms sometimes? Or are there scenarios that could mean a noticeable difference? Posted at 2022-02-08 by @fanoush Well, it can be also 59 seconds too late, so why not schedule timeout to the first second of the minute? Even if you would run the first Clocks showing seconds can to the same and schedule to first milisecond in a second instead of e.g. running setInterval every 500 or 250ms. Posted at 2022-02-08 by RaoulDuke I changed the code to this:
I also put this line in draw() to measure the timing error:
So far it has never shown more than 0.01s, which is good enough for a clock that updates every minute. Posted at 2022-02-09 by @gfwilliams That's great - but I feel like there shouldn't really be any issues with the 'old' way of doing it - unless for some reason the clock face caused an exception when drawing so execution never completed and |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-02-07 by RaoulDuke
The clock on my Bangle2 regularly stops when it it connected via Gadgetbridge. The watch still responds, but the displayed time is not updated. When i disconnect the phone, all is good. Does anyone else have the same issue?
Beta Was this translation helpful? Give feedback.
All reactions