summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-09-03 23:18:11 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-09-03 23:18:11 +0200
commita03a13a71b6e5e5a1f86cdf74051a7032dfc71f4 (patch)
tree6fb264c7a0e452f54338e850c27202b4209dda3e /rules
parent43cb53961b279af5ed961596737f053801da5fb8 (diff)
downloadupower-hidpp-rework.tar.gz
hidpp: try harder not to report 0% batteryhidpp-rework
(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>
Diffstat (limited to 'rules')
0 files changed, 0 insertions, 0 deletions