Skip to content

Commit 2d6dc2f

Browse files
committed
usb-device-core: Fix comment describing the signature of done_cb.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent a1a9e57 commit 2d6dc2f

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

micropython/usb/usb-device/usb/device/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,10 @@ def submit_xfer(self, ep_addr, data, done_cb=None):
575575
# - data. Buffer containing data to send, or for data to be read into
576576
# (depending on endpoint direction).
577577
#
578-
# - done_cb. Optional callback function for when the transfer
579-
# completes. The callback is called with arguments (ep_addr, result,
580-
# xferred_bytes) where result is one of xfer_result_t enum (see top of
581-
# this file), and xferred_bytes is an integer.
578+
# - done_cb. Optional callback function for when the transfer completes.
579+
# The callback is called with arguments (ep_addr, result, xferred_bytes)
580+
# where result is an integer equal to one of machine.USBDevice.XFER_nnn
581+
# enums, and xferred_bytes is an integer.
582582
#
583583
# If the function returns, the transfer is queued.
584584
#

0 commit comments

Comments
 (0)