receiver: dispose of no-op notifications quickly

This commit is contained in:
Peter F. Patel-Schneider 2022-02-19 23:21:50 -05:00
parent 00176a1df8
commit 1696733702
1 changed files with 3 additions and 0 deletions

View File

@ -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)