From 29d0c0716473e5250fbf4faa97b563fe6b3e2412 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 19 May 2013 10:20:21 +0200 Subject: [PATCH] hid10: Formatting and re-order NOTIFICATION_FLAGs Align values for easier reading the numeric values of NOTIFICATION_FLAGs. To maintain consistency in the ordering of the values, swap keyboard_backlight with keyboard_present. --- lib/logitech/unifying_receiver/hidpp10.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/logitech/unifying_receiver/hidpp10.py b/lib/logitech/unifying_receiver/hidpp10.py index 7ce96889..927a75e5 100644 --- a/lib/logitech/unifying_receiver/hidpp10.py +++ b/lib/logitech/unifying_receiver/hidpp10.py @@ -45,13 +45,13 @@ POWER_SWITCH_LOCATION = _NamedInts( # In the future would be useful to have separate enums for receiver and device notification flags, # but right now we don't know enough. NOTIFICATION_FLAG = _NamedInts( - battery_status=0x100000, # send battery charge notifications (0x07 or 0x0D) - keyboard_sleep_raw=0x020000, # system control keys such as Sleep + battery_status= 0x100000, # send battery charge notifications (0x07 or 0x0D) + keyboard_sleep_raw= 0x020000, # system control keys such as Sleep keyboard_multimedia_raw=0x010000, # consumer controls such as Mute and Calculator - # reserved_r1b4=0x001000, # unknown, seen on a unifying receiver - keyboard_backlight=0x000200, # illumination brightness level changes (by pressing keys) - software_present=0x000800, # .. no idea - wireless=0x000100, # notify when the device wireless goes on/off-line + # reserved_r1b4= 0x001000, # unknown, seen on a unifying receiver + software_present= 0x000800, # .. no idea + keyboard_backlight= 0x000200, # illumination brightness level changes (by pressing keys) + wireless= 0x000100, # notify when the device wireless goes on/off-line ) ERROR = _NamedInts(