diff options
Diffstat (limited to 'os/hal/platforms/STM32/OTGv1')
-rw-r--r-- | os/hal/platforms/STM32/OTGv1/usb_lld.c | 6 |
1 files changed, 3 insertions, 3 deletions
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;
|