Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Battery Level reporting error in emulator (low priority) #84

Open
seanleal opened this issue Mar 12, 2019 · 3 comments
Open

Possible Battery Level reporting error in emulator (low priority) #84

seanleal opened this issue Mar 12, 2019 · 3 comments

Comments

@seanleal
Copy link

seanleal commented Mar 12, 2019

This seems like a tiny issue, but I thought I'd report it. When both Versa and Ionic emulators are set to certain battery levels, they report a different battery level to the emulator.

Setting level 29 reports 28. (See screen shot. )
Setting level 57 reports 56.
Setting level 58 reports 57.

I have verified all other battery values are correct.
In my code I am using these lines to derive the battery level:

var batlvl = Math.floor(battery.chargeLevel);
powerRow.text = batlvl;

So it could be some kind of round-off error. I also attempted to remove the Math.floor() function but received the same results. Again, not a critical issue, but something that should be documented. Thanks!

image

@Hexxeh
Copy link
Contributor

Hexxeh commented Dec 9, 2019

Are you still seeing this on the current simulator release?

@seanleal
Copy link
Author

seanleal commented Dec 9, 2019

I will re-test later today and let you know.
Thanks for the follow-up.

@seanleal
Copy link
Author

I just re-built my watch face with the SDK 4.0, and downloaded the latest simulator. I'm still seeing the exact same values given the same settings.
Fortunately, I'm not sure if any user would possibly notice this, even on a watch face with a very granular battery percentage display such as mine.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants