diff options
author | Peter Wu <lekensteyn@gmail.com> | 2013-09-03 23:24:21 +0200 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2013-09-04 07:12:37 +0200 |
commit | 347b8b0b93b1e96bfc8a2d54df3d2864ba1d861f (patch) | |
tree | 564cb2be967516ae2a408b11115256b7ca819254 /tools | |
parent | 5867d5432bebbb4f1aeaa11bcbd100b94bb74791 (diff) | |
download | upower-347b8b0b93b1e96bfc8a2d54df3d2864ba1d861f.tar.gz |
hidpp: try harder not to report 0% battery
(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.
Signed-off-by: Peter Wu <lekensteyn@gmail.com>
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions