From 2d6dc2ff7d233fb33af95f5259ba3194a5e96968 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 8 Apr 2026 11:13:46 +1000 Subject: [PATCH] usb-device-core: Fix comment describing the signature of done_cb. Signed-off-by: Angus Gratton --- micropython/usb/usb-device/usb/device/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/micropython/usb/usb-device/usb/device/core.py b/micropython/usb/usb-device/usb/device/core.py index 20cda94ca..e6bc8bb2a 100644 --- a/micropython/usb/usb-device/usb/device/core.py +++ b/micropython/usb/usb-device/usb/device/core.py @@ -575,10 +575,10 @@ def submit_xfer(self, ep_addr, data, done_cb=None): # - data. Buffer containing data to send, or for data to be read into # (depending on endpoint direction). # - # - done_cb. Optional callback function for when the transfer - # completes. The callback is called with arguments (ep_addr, result, - # xferred_bytes) where result is one of xfer_result_t enum (see top of - # this file), and xferred_bytes is an integer. + # - done_cb. Optional callback function for when the transfer completes. + # The callback is called with arguments (ep_addr, result, xferred_bytes) + # where result is an integer equal to one of machine.USBDevice.XFER_nnn + # enums, and xferred_bytes is an integer. # # If the function returns, the transfer is queued. #