warmsound / crystal-face

Garmin Connect IQ watch face

Home Page:https://apps.garmin.com/en-GB/apps/9fd04d09-8c80-4c81-9257-17cfa0f0081b

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with battery indicator

Michau222 opened this issue · comments

Hey,
There is a bug with battery indicator in Forerunner 245 Music (don't know if that exist on other devices). There is always a bug, when battery drop by 1% the watchface indicator shows this difference earlier than a system indicator. So for example watchface shows 88% when in system settings there is 89%. After some time amount is the same on both indicators. But later there is again - 87% on watchface and in system there is 88%.

The app does a 'Math.floor' of the battery level before displaying. Since it was coded that way, I believe it's by design. A better approach IMHO would have been a 'Math.round' but that's not was it was chosen here.