aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-04-22 09:02:36 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-04-22 09:02:36 +0000
commitdde9abf1edc845608184765116ed9247e2f4f298 (patch)
treea98a07557b03165a93093f8d3e21ff2da87bcb2b
parentafb0f96e2dc78953220446b66f409c3f661984a3 (diff)
downloadChibiOS-dde9abf1edc845608184765116ed9247e2f4f298.tar.gz
ChibiOS-dde9abf1edc845608184765116ed9247e2f4f298.tar.bz2
ChibiOS-dde9abf1edc845608184765116ed9247e2f4f298.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11946 110e8d01-0319-4d1e-a829-52ad28d1bb01
-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)