From 51dd2a5d28d75e1188eafba2acd4c1ca9380890a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Tue, 20 Aug 2019 12:39:15 +0100 Subject: [PATCH] notifications: add missing protocol names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- lib/logitech_receiver/notifications.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/logitech_receiver/notifications.py b/lib/logitech_receiver/notifications.py index 22d8cb7e..ce3a20e7 100644 --- a/lib/logitech_receiver/notifications.py +++ b/lib/logitech_receiver/notifications.py @@ -154,9 +154,15 @@ def _process_hidpp10_notification(device, status, n): # wireless link notification if n.sub_id == 0x41: - protocol_name = ('unifying (eQuad DJ)' if n.address == 0x04 - else 'eQuad' if n.address == 0x03 - else 'M185' if n.address == 0x0A + protocol_name = ('Bluetooth' if n.address == 0x01 + else '27 MHz' if n.address == 0x02 + else 'QUAD or eQUAD' if n.address == 0x03 + else 'eQUAD step 4 DJ' if n.address == 0x04 + else 'DFU Lite' if n.address == 0x05 + else 'eQUAD step 4 Lite' if n.address == 0x06 + else 'eQUAD step 4 Gaming' if n.address == 0x07 + else 'eQUAD step 4 for gamepads' if n.address == 0x08 + else 'eQUAD nano Lite' if n.address == 0x0A else 'Lightspeed 1' if n.address == 0x0C else 'Lightspeed 1_1' if n.address == 0x0D else None)