git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9610 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-06-09 14:31:53 +00:00
parent 562e6c0313
commit a104f03cd7
1 changed files with 2 additions and 2 deletions

View File

@ -321,8 +321,8 @@ void usbStop(USBDriver *usbp) {
"invalid state");
usb_lld_stop(usbp);
spip->config = NULL;
spip->state = USB_STOP;
usbp->config = NULL;
usbp->state = USB_STOP;
/* Resetting all ongoing synchronous operations.*/
for (i = 0; i <= (unsigned)USB_MAX_ENDPOINTS; i++) {