X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/ed7fa2e0b327ec381e13396001d7a6fc267c9f73..67585f5d88f0b7406304f10d7f9827583175a3e7:/src/usb_hid.py diff --git a/src/usb_hid.py b/src/usb_hid.py index b9d9dac..7db2b8e 100644 --- a/src/usb_hid.py +++ b/src/usb_hid.py @@ -52,9 +52,9 @@ class Device: def send_report(self, report: bytearray, report_id: int = None): """Send an HID report. If the device descriptor specifies zero or one report id's, - you can supply `None` (the default) as the value of ``report_id``. - Otherwise you must specify which report id to use when sending the report. - """ + you can supply `None` (the default) as the value of ``report_id``. + Otherwise you must specify which report id to use when sending the report. + """ report_id = report_id or self.report_ids[0] device_path = self.get_device_path(report_id) with open(device_path, "rb+") as fd: