igrik12/battery_info

current now and average incorrect values

Opened this issue · 3 comments

the currentNow shows the correct value for some devices but it shows a large incorrect value for some other devices, also the CurrentAverage works for some devices and for others it shows -2147483648

Hey toolsX !!

Did you find solution for this package or any other suitable package for getting current values. I am still facing same issue with this package.

Hey,

Thanks for your quick response and for shedding light on the current issue with the values from package. Your explanation helped me understand why we're seeing varying results across different devices.

I managed to work around the problem by implementing the solution you suggested. It's working like a charm!

I agree that updating the package documentation to explain this would be helpful for other developers. I'll create a PR against this issue soon updating the documentation about values for better understanding.

Thanks again for your help!