Fixed bug #410.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5734 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
16de43cd02
commit
1c4c762c0a
|
@ -350,13 +350,11 @@ CH_IRQ_HANDLER(STM32_USB1_LP_HANDLER) {
|
|||
|
||||
transmitted = (size_t)USB_GET_DESCRIPTOR(ep)->TXCOUNT0;
|
||||
epcp->in_state->txcnt += transmitted;
|
||||
epcp->in_state->txsize -= transmitted;
|
||||
if (epcp->in_state->txsize > 0) {
|
||||
n = epcp->in_state->txsize - epcp->in_state->txcnt;
|
||||
if (n > 0) {
|
||||
/* Transfer not completed, there are more packets to send.*/
|
||||
if (epcp->in_state->txsize > epcp->in_maxsize)
|
||||
if (n > epcp->in_maxsize)
|
||||
n = epcp->in_maxsize;
|
||||
else
|
||||
n = epcp->in_state->txsize;
|
||||
|
||||
if (epcp->in_state->txqueued)
|
||||
usb_packet_write_from_queue(USB_GET_DESCRIPTOR(ep),
|
||||
|
|
|
@ -89,6 +89,7 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** 2.5.2 ***
|
||||
- FIX: Fixed wrong STM32 USBv1 driver behavior (bug #410).
|
||||
- FIX: Fixed STM32 wrong peripherals reset procedure (bug #409)(backported
|
||||
to 2.4.4).
|
||||
- FIX: Fixed STM32 SPIv2 polled exchange (bug #372).
|
||||
|
|
Loading…
Reference in New Issue