From aac09d3da8b019cf5f6ac4366200b6d2a1e26fc7 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 30 Mar 2021 11:56:31 +0000 Subject: [PATCH] Fixed bug #1151. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@14114 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/src/hal_serial_usb.c | 2 +- readme.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/os/hal/src/hal_serial_usb.c b/os/hal/src/hal_serial_usb.c index 9eabb154c..9de5dd888 100644 --- a/os/hal/src/hal_serial_usb.c +++ b/os/hal/src/hal_serial_usb.c @@ -61,7 +61,7 @@ static bool sdu_start_receive(SerialUSBDriver *sdup) { } /* Checking if there is already a transaction ongoing on the endpoint.*/ - if (usbGetReceiveStatusI(sdup->config->usbp, sdup->config->bulk_in)) { + if (usbGetReceiveStatusI(sdup->config->usbp, sdup->config->bulk_out)) { return true; } diff --git a/readme.txt b/readme.txt index 2ba828d2a..fb1d693ae 100644 --- a/readme.txt +++ b/readme.txt @@ -74,8 +74,8 @@ ***************************************************************************** *** 20.3.4 *** -- FIX: Fixed L0x2 series DAC not allocated in registry (bug #1150) - (backported to 19.1.5). +- FIX: Fixed wrong behavior in Serial-USB driver (bug #1151). +- FIX: Fixed L0x2 series DAC not allocated in registry (bug #1150). - FIX: Fixed inconsistent naming of SAI DMAMUX defines for STM32H7 (bug #1149). - FIX: Fixed TIM register layout difference for STM32G4 series (bug #1148). - FIX: Fixed STM32 QUADSPI driver problem when used with DMAv2 (bug #1147).