receiver: filter out DJ reports that are not notifications

This commit is contained in:
Peter F. Patel-Schneider 2020-06-17 22:37:44 -04:00
parent aeb03df3f7
commit 09125bce2d
1 changed files with 2 additions and 2 deletions

View File

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