|
41 | 41 | //| The default set of devices is ``Device.KEYBOARD, Device.MOUSE, Device.CONSUMER_CONTROL``,
|
42 | 42 | //| On boards where `usb_hid` is disabled by default, `devices` is an empty tuple.
|
43 | 43 | //|
|
44 |
| -//| If a boot device is enabled by `usb_hid.enable)`, *and* the host has requested a boot device, |
45 |
| -//| the `devices` tuple is *replaced* when ``code.py`` starts with a single-element tuple |
| 44 | +//| If a boot device is enabled by `usb_hid.enable()`, *and* the host has requested a boot device, |
| 45 | +//| the `devices` tuple is **replaced** when ``code.py`` starts with a single-element tuple |
46 | 46 | //| containing a `Device` that describes the boot device chosen (keyboard or mouse).
|
47 | 47 | //| The request for a boot device overrides any other HID devices.
|
48 | 48 | //| """
|
@@ -143,7 +143,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(usb_hid_enable_obj, 1, usb_hid_enable);
|
143 | 143 | //| """
|
144 | 144 | //| :return: the boot device requested by the host, if any.
|
145 | 145 | //| Returns 0 if the host did not request a boot device, or if `usb_hid.enable()`
|
146 |
| -//| was called with `boot_device=0`, the default, which disables boot device support. |
| 146 | +//| was called with ``boot_device=0``, the default, which disables boot device support. |
147 | 147 | //| If the host did request a boot device,
|
148 | 148 | //| returns the value of ``boot_device`` set in `usb_hid.enable()`:
|
149 | 149 | //| ``1`` for a boot keyboard, or ``2`` for boot mouse.
|
|
0 commit comments