[PATCH] hidpp: try harder not to report 0% battery
Martin Pitt
martin.pitt at ubuntu.com
Tue Sep 3 22:13:32 PDT 2013
Hey Peter Wu,
Peter Wu [2013-09-03 23:24 +0200]:
> (1) If the K800 keyboard is charging via the USB cable, it will report
> itself as Charging, but with a discharge level of 0 (which means
> "unknown". In this case, the previous known value (before
> connecting the cable) is always a better approximation than using
> zero.
> (2) When the K800 has fully charged (but with the cable still plugged
> in), it will still report 0 as discharge level. "Full" is 100% by
> definition, so let's fallback to that value.
Two words: hardware sucks :-)
Thanks for this polishing! Applied.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
More information about the devkit-devel
mailing list