-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
Hi,
I realize this is ancient, and I appreciate you making it. It has worked great over the years.
There has been some change resulting in the battery reporting as 0% all the time.
I found if you change the 2 lines: (126,127)
def pct = (volts - minVolts) / (maxVolts - minVolts)
result.value = Math.min(100, (int) pct * 100)
to:
def pct = (((volts - minVolts) / (maxVolts - minVolts)) * 100)
result.value = Math.min(100, (int) pct)
It corrects the problem. At least currently. (10/25/2018)
Thanks again.
Metadata
Metadata
Assignees
Labels
No labels