Merge pull request #312 from goose121/patch-1

Use absolute value of current_now
This commit is contained in:
David 2026-01-08 22:10:17 -05:00 committed by GitHub
commit 176e770339
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,7 +209,7 @@
(sysfs-int-field path "charge_now")))
(consumption ()
(or (sysfs-int-field path "power_now")
(sysfs-int-field path "current_now")))
(abs (sysfs-int-field path "current_now"))))
(capacity-native ()
(sysfs-int-field path "capacity"))
(capacity-calculate ()