diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/src/hal_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/src/hal_usb.c b/os/hal/src/hal_usb.c index f0da64978..d6d5b6606 100644 --- a/os/hal/src/hal_usb.c +++ b/os/hal/src/hal_usb.c @@ -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++) {
|