From db0b9dbf0bcce6b53647bd3bd25ff88e45794f16 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 28 Nov 2015 10:18:46 +0000 Subject: Fixed bug #674. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8536 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/OTGv1/usb_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/ports') 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 -- cgit v1.2.3