warmsound / crystal-face

Garmin Connect IQ watch face
https://apps.garmin.com/en-GB/apps/9fd04d09-8c80-4c81-9257-17cfa0f0081b
GNU General Public License v3.0
389 stars 126 forks source link

Bug with battery indicator #210

Open Michau222 opened 3 years ago

Michau222 commented 3 years ago

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%.

SylvainGa commented 2 years ago

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.