Skip to content

Commit 043cd06

Browse files
committed
Bring our USB core up to the point where it matches bjc's
1 parent c76200a commit 043cd06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USBCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ void EPBuffer<L>::waitForWriteComplete()
241241
if ((int_status & INTF_STIF) == INTF_STIF
242242
&& (int_status & INTF_DIR) == 0
243243
&& (USBD_EPxCS(ep_num) & EPxCS_TX_ST) == EPxCS_TX_ST) {
244-
USBD_EP_TX_ST_CLEAR(ep_num);
245244
EPBuffers().markComplete(ep_num);
245+
USBD_EP_TX_ST_CLEAR(ep_num);
246246
}
247247
}
248248
}

0 commit comments

Comments
 (0)