From dde9abf1edc845608184765116ed9247e2f4f298 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 22 Apr 2018 09:02:36 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11946 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os') diff --git a/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c b/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c index e773bc143..20607b735 100644 --- a/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c +++ b/os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c @@ -506,7 +506,7 @@ void usb_lld_start(USBDriver *usbp) { void usb_lld_stop(USBDriver *usbp) { /* If in ready state then disables the USB clock.*/ - if (usbp->state == USB_STOP) { + if (usbp->state != USB_STOP) { #if STM32_USB_USE_USB1 if (&USBD1 == usbp) { #if STM32_USB1_HP_NUMBER != STM32_USB1_LP_NUMBER -- cgit v1.2.3