You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix abrupt USB disconnection leaving stale data in DAP queue buffers.
Clearing the buffers in the USB_DISCONNECTING state, which then
moves to the USB_DISCONNECTED state.
The USB_DISCONNECTING state was never used, in the current codebase
nor the initial repo commit (well, second commit, first release):
bdacee7
It looks like this state might have been initialy designed as a way
to trigger a USB disconnection from the interface chip, as it
manually set usbd_connect(0) to disconnect.
As it was never used it's now the pre-disconnected state to run
code only once on state change:
connected->disconnecting->disconnected
FixesARMmbed#1089
0 commit comments