aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-28 10:18:46 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-28 10:18:46 +0000
commitdb0b9dbf0bcce6b53647bd3bd25ff88e45794f16 (patch)
treebc8ea132fbad6441ee988d264afaa122dd668b10 /os/hal/ports
parentbe48aa8f69331b6ec5b8594cf72a9563a75ab646 (diff)
downloadChibiOS-db0b9dbf0bcce6b53647bd3bd25ff88e45794f16.tar.gz
ChibiOS-db0b9dbf0bcce6b53647bd3bd25ff88e45794f16.tar.bz2
ChibiOS-db0b9dbf0bcce6b53647bd3bd25ff88e45794f16.zip
Fixed bug #674.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8536 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/STM32/LLD/OTGv1/usb_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
index 6d94f2e07..9c37d58a5 100644
--- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
+++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
@@ -168,7 +168,7 @@ static void otg_disable_ep(USBDriver *usbp) {
if ((otgp->oe[i].DOEPCTL & DOEPCTL_EPENA) != 0) {
otgp->oe[i].DOEPCTL = DOEPCTL_EPDIS;
/* Wait for endpoint disable.*/
- while (!(otgp->oe[i].DOEPINT & DOEPINT_OTEPDIS))
+ while (!(otgp->oe[i].DOEPCTL & DOEPCTL_EPDIS))
;
}
else