Solaar/lib/logitech/unifying_receiver
Peter Wu fbdd923d43 Refactor battery info update
- `self[BATTERY_STATUS] = BATTERY_STATUS[battery_status]` should be:
  `self[BATTERY_STATUS] = _hidpp20.BATTERY_STATUS[battery_status]`, otherwise
  the battery status would be a single char from the string `battery-status`.
- Make `_hidpp20.BATTERY_OK` check against strings instead of a number.
- Move setting battery information to a separate function, `set_battery_info`.
  This prepares for notifications when a battery error/warning occurs.
2013-05-02 23:51:40 +02:00
..
__init__.py incipient support for the Nano receiver 2013-04-28 14:27:16 +02:00
base.py quicker detection of matching receivers in udev 2013-05-02 11:11:53 +02:00
common.py python 3 fixes for #29 2013-04-30 22:31:06 +02:00
descriptors.py some code clean-ups 2013-04-28 15:16:45 +02:00
hidpp10.py hidpp10: split reg07 (battery) parsing so it can be reused 2013-05-02 23:06:45 +02:00
hidpp20.py Refactor battery info update 2013-05-02 23:51:40 +02:00
listener.py use only udev events to detect receiver devices 2013-05-01 15:47:23 +02:00
receiver.py use only udev events to detect receiver devices 2013-05-01 15:47:23 +02:00
settings.py Make BooleanValidator accept bytes too besides int 2013-04-27 15:12:55 +02:00
status.py Refactor battery info update 2013-05-02 23:51:40 +02:00