[Pkg-wmaker-commits] [wmbattery] 89/241: * Further fix for my strange battery. If the present capacity is larger than the maximum capacity, rescan to figure out the new max capacity.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:37:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmbattery.
commit 25f3f638ec3045a6b049b2b85c54677fdb18b183
Author: Joey Hess <joey at kitenet.net>
Date: Wed Nov 28 23:53:49 2007 -0500
* Further fix for my strange battery. If the present capacity is larger
than the maximum capacity, rescan to figure out the new max capacity.
---
acpi.c | 5 +++++
debian/changelog | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/acpi.c b/acpi.c
index 6a398fe..4000614 100644
--- a/acpi.c
+++ b/acpi.c
@@ -401,6 +401,11 @@ int acpi_read (int battery, apm_info *info) {
* buf below this point! */
acpi_batt_capacity[battery] = get_acpi_batt_capacity(battery);
}
+ else if (pcap > acpi_batt_capacity[battery]) {
+ /* Battery is somehow charged to greater than max
+ * capacity. Rescan for a new max capacity. */
+ find_batteries();
+ }
if (pcap) {
/* percentage = (current_capacity / max capacity) * 100 */
diff --git a/debian/changelog b/debian/changelog
index 954345c..d693443 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+wmbattery (2.31) UNRELEASED; urgency=low
+
+ * Further fix for my strange battery. If the present capacity is larger
+ than the maximum capacity, rescan to figure out the new max capacity.
+
+ -- Joey Hess <joeyh at debian.org> Fri, 23 Nov 2007 08:17:51 -0500
+
wmbattery (2.30) unstable; urgency=low
* My new battery has a design capacity of 7800 mAh and yet its
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbattery.git
More information about the Pkg-wmaker-commits
mailing list