From 862fd9c11030afe7dc46cacbfc85f1b3bcb6663c Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Tue, 1 Mar 2022 14:16:56 -0500 Subject: [PATCH] device: cut off noops even earlier --- lib/logitech_receiver/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/logitech_receiver/base.py b/lib/logitech_receiver/base.py index 84db044c..2c6b9611 100644 --- a/lib/logitech_receiver/base.py +++ b/lib/logitech_receiver/base.py @@ -325,6 +325,10 @@ def make_notification(report_id, devnumber, data): return address = ord(data[1:2]) + if sub_id == 0x00 and (address & 0x0F == 0x00): + # this is a no-op notification - don't do anything with it + return + if ( # standard HID++ 1.0 notification, SubId may be 0x40 - 0x7F (sub_id >= 0x40) or # noqa: E131