Skip to content

Commit 64ffb45

Browse files
author
kolten
committed
use-device-hid: Rename binterval to interval_ms.
Signed-off-by: kolten <koltenpearson@fastmail.com>
1 parent 36a3ece commit 64ffb45

File tree

1 file changed

+4
-4
lines changed
  • micropython/usb/usb-device-hid/usb/device

1 file changed

+4
-4
lines changed

micropython/usb/usb-device-hid/usb/device/hid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
set_report_buf=None,
6565
protocol=_INTERFACE_PROTOCOL_NONE,
6666
interface_str=None,
67-
binterval=8,
67+
interval_ms=8,
6868
):
6969
# Construct a new HID interface.
7070
#
@@ -87,14 +87,14 @@ def __init__(
8787
#
8888
# - interface_str is an optional string descriptor to associate with the HID USB interface.
8989
#
90-
# - binterval this is the polling rate the device will request the host use in milliseconds.
90+
# - interval_ms this is the polling rate the device will request the host use in milliseconds.
9191
super().__init__()
9292
self.report_descriptor = report_descriptor
9393
self.extra_descriptors = extra_descriptors
9494
self._set_report_buf = set_report_buf
9595
self.protocol = protocol
9696
self.interface_str = interface_str
97-
self.binterval = binterval
97+
self.interval_ms = interval_ms
9898

9999
self._int_ep = None # set during enumeration
100100

@@ -154,7 +154,7 @@ def desc_cfg(self, desc, itf_num, ep_num, strs):
154154
# Add the typical single USB interrupt endpoint descriptor associated
155155
# with a HID interface.
156156
self._int_ep = ep_num | _EP_IN_FLAG
157-
desc.endpoint(self._int_ep, "interrupt", 8, self.binterval)
157+
desc.endpoint(self._int_ep, "interrupt", 8, self.interval_ms)
158158

159159
self.idle_rate = 0
160160

0 commit comments

Comments
 (0)