Skip to content

Commit 1741f72

Browse files
committed
CDC: handle abort on request_xfer_done
1 parent f0f4a88 commit 1741f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USB/USBCDC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ bool USBCDC::callback_request_xfer_done(const USBDevice::setup_packet_t *setup,
259259

260260
bool success = false;
261261

262-
if (setup->wIndex != pluggedInterface) {
262+
if (setup->wIndex != pluggedInterface || aborted) {
263263
return success;
264264
}
265265

0 commit comments

Comments
 (0)