Matchstic / Xen-HTML

Unified and simplified HTML rendering
GNU General Public License v2.0
109 stars 16 forks source link

Battery API Maximum Capacity Inaacurate #265

Closed al5ina5 closed 4 years ago

al5ina5 commented 4 years ago

I tweeted you about this issue. https://twitter.com/youngseebi/status/1267580009306259468

Describe the bug The maximum capacity value is not accurate. It fluctuates based on battery. With a brand new phone (less than a week old), my max cap fluctuated from under 200 to over 3,000. The cap should not change in a short period, and should represent long-term health of the battery.

To Reproduce Simply display or read the battery max cap at any time.

Expected behavior The max cap should only change over time, alongside the life and health of the battery. In my case, on a new phone, it should match the design value or be very close to it.

Screenshots https://imgur.com/a/u1GbFFu https://imgur.com/a/j9yUll7 As you can see in the second screenshot, the max cap value (Health) is very close to the battery charge level. As I charge my phone, the cap raises. As the battery dies, the cap lowers.

Smartphone (please complete the following information):

Additional context I think that summarizes it. :)

Matchstic commented 4 years ago

Fixed for beta 3 - I was using incorrect battery info to grab the current max capacity.