aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/ports/STM32/LLD/USBv1/hal_usb_lld.c2
-rw-r--r--readme.txt6
2 files changed, 4 insertions, 4 deletions
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
diff --git a/readme.txt b/readme.txt
index a72576297..382e06391 100644
--- a/readme.txt
+++ b/readme.txt
@@ -114,9 +114,9 @@
- EX: Updated LPS25H to 1.1.0 (backported to 18.2.1).
- EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1).
- HAL: Fixed STM32 USBv1 driver does not reset data toggling bits on endpoint
- initialization (bug #939)(TO BE backported to 18.2.1 and 17.6.5).
--- HAL: Fixed incorrect behavior of USB driver on SET CONFIGURATION (bug #938)
- (TO BE backported to 18.2.1 and 17.6.5).
+ initialization (bug #939)(backported to 18.2.1 and 17.6.5).
+- HAL: Fixed incorrect behavior of USB driver on SET CONFIGURATION (bug #938)
+ (backported to 18.2.1 and 17.6.5).
- HAL: Fixed macro expansion problem in SPI high level driver (bug #937)
(backported to 18.2.1).
- HAL: Fixed missing CAN2 macros from STM32L4xx stm32_rcc.h file (bug #936)