8000 Merge pull request #6818 from maximkulkin/7.3.x-usb-hid-get-last-repo… · squix78/circuitpython@7a47140 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7a47140

Browse files
authored
Merge pull request adafruit#6818 from maximkulkin/7.3.x-usb-hid-get-last-report-doc
shared-bindings/usb_hid: Fix docs for Device.get_last_received_report()
2 parents fdda9c0 + cdf360a commit 7a47140

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shared-bindings/usb_hid/Device.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ STATIC mp_obj_t usb_hid_device_send_report(size_t n_args, const mp_obj_t *pos_ar
192192
}
193193
MP_DEFINE_CONST_FUN_OBJ_KW(usb_hid_device_send_report_obj, 1, usb_hid_device_send_report);
194194

195-
//| def get_last_received_report(self, report_id: Optional[int] = None) -> bytes:
195+
//| def get_last_received_report(self, report_id: Optional[int] = None) -> Optional[bytes]:
196196
//| """Get the last received HID OUT or feature report for the given report ID.
197197
//| The report ID may be omitted if there is no report ID, or only one report ID.
198-
//| Return `None` if nothing received.
198+
//| Return `None` if nothing received. After returning a report, subsequent calls
199+
//| will return `None` until next report is received.
199200
//| """
200201
//| ...
201202
//|

0 commit comments

Comments
 (0)
0