From cad79d42e885dd416f8b9e1e35e47c39deef189a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 17 Jun 2012 05:03:56 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4281 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/OTGv1/usb_lld.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os/hal') diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c index 7987d6a5e..005bfdede 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.c +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c @@ -317,7 +317,7 @@ static void otg_fifo_write_from_queue(usbep_t ep, } /* If this condition is not satisfied then there is a word lying across - queue circular buffer boundary or there is a residual of data.*/ + queue circular buffer boundary or there are some remaining bytes.*/ if (ntogo <= 0) break; @@ -331,7 +331,7 @@ static void otg_fifo_write_from_queue(usbep_t ep, ntogo--; i++; } - *fifop = dw; + *fifop = w; } /* Updating queue.*/ @@ -427,7 +427,7 @@ static void otg_fifo_read_to_queue(InputQueue *iqp, size_t n) { } /* If this condition is not satisfied then there is a word lying across - queue circular buffer boundary or there is a residual of data.*/ + queue circular buffer boundary or there are some remaining bytes.*/ if (ntogo <= 0) break; -- cgit v1.2.3