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 +- readme.txt | 6 +++--- 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) -- cgit v1.2.3