From 16967337023ed36a27ad38fd9bd5da13f5b76d75 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Sat, 19 Feb 2022 23:21:50 -0500 Subject: [PATCH] receiver: dispose of no-op notifications quickly --- lib/logitech_receiver/notifications.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/logitech_receiver/notifications.py b/lib/logitech_receiver/notifications.py index b9a4b581..50a47f66 100644 --- a/lib/logitech_receiver/notifications.py +++ b/lib/logitech_receiver/notifications.py @@ -161,6 +161,9 @@ def _process_device_notification(device, status, n): # HID++ 1.0 requests, should never get here assert n.sub_id & 0x80 == 0 + if n.sub_id == 00: # no-op feature notification, dispose of it quickly + return False + # Allow the device object to handle the notification using custom # per-device state. handling_ret = device.handle_notification(n)