aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-16 12:18:52 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-16 12:18:52 +0000
commit06b66b49e4f9c2cd4a2d667686de5bb9d38946e1 (patch)
tree4d7e88ba97434eadad75ef13693de19c1330d514 /os
parent471877bf143ed92f3de3c12256f4d9c8f460e1cc (diff)
downloadChibiOS-06b66b49e4f9c2cd4a2d667686de5bb9d38946e1.tar.gz
ChibiOS-06b66b49e4f9c2cd4a2d667686de5bb9d38946e1.tar.bz2
ChibiOS-06b66b49e4f9c2cd4a2d667686de5bb9d38946e1.zip
Fixed bug #566.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7779 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/LLD/OTGv1/usb_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
index 455c1c77e..6d2450de9 100644
--- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
+++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
@@ -515,11 +515,11 @@ static bool otg_txfifo_handler(USBDriver *usbp, usbep_t ep) {
n);
usbp->epc[ep]->in_state->mode.linear.txbuf += n;
}
- usbp->epc[ep]->in_state->txcnt += n;
- }
#if STM32_USB_OTGFIFO_FILL_BASEPRI
__set_BASEPRI(0);
#endif
+ usbp->epc[ep]->in_state->txcnt += n;
+ }
}
/**