fix hid report type disambiguition

This commit is contained in:
xs5871 authored and Josh Klar committed 2021-12-06 09:22:21 -08:00
1 parent a8b2bf75ad
commit e1300ba767
1 file changed
+2 -2
+2 -2
View File
@@ -227,7 +227,7 @@ class USBHID(AbstractHID):
def hid_send(self, evt):
# int, can be looked up in HIDReportTypes
reporting_device_const = self.report_device[0]
reporting_device_const = evt[0]
return self.devices[reporting_device_const].send_report(
evt[1 : HID_REPORT_SIZES[reporting_device_const] + 1]
@@ -295,7 +295,7 @@ class BLEHID(AbstractHID):
return
# int, can be looked up in HIDReportTypes
reporting_device_const = self.report_device[0]
reporting_device_const = evt[0]
device = self.devices[reporting_device_const]