From 09125bce2d62e9ffc3dd665922adce3e29f2174b Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Wed, 17 Jun 2020 22:37:44 -0400 Subject: [PATCH] receiver: filter out DJ reports that are not notifications --- lib/logitech_receiver/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logitech_receiver/base.py b/lib/logitech_receiver/base.py index 29cfefca..08054938 100644 --- a/lib/logitech_receiver/base.py +++ b/lib/logitech_receiver/base.py @@ -277,9 +277,9 @@ def make_notification(devnumber, data): # this is either a HID++1.0 register r/w, or an error reply return - # regular keyboard key press reports and mouse movement reports are not notifications + # DJ input records are not notifications # it would be better to check for report_id 0x20 but that information is not sent here - if len(data) == _MEDIUM_MESSAGE_SIZE-2 and (sub_id==0x02 or sub_id==0x01): + if len(data) == _MEDIUM_MESSAGE_SIZE-2 and (sub_id < 0x10): return address = ord(data[1:2])