1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

usbus/control: fix spelling errors in control slicer

This commit is contained in:
Koen Zandberg 2019-10-23 10:40:02 +02:00
parent 9eee6bc0a1
commit 063ee3352c
No known key found for this signature in database
GPG Key ID: BA1718B37D79F51C
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ typedef struct {
size_t start; /**< Start offset of the current part */
size_t cur; /**< Current position in the message */
size_t len; /**< Length of the full message */
size_t transfered; /**< Number of bytes transfered */
size_t transferred; /**< Number of bytes transferred */
size_t reqlen; /**< Maximum length of the request */
} usbus_control_slicer_t;
@ -124,7 +124,7 @@ void usbus_control_slicer_ready(usbus_t *usbus);
* @param[in] usbus USBUS context
*
* @return 1 when there is a next slice
* @return 0 when the data is fully transfered
* @return 0 when the data is fully transferred
*/
int usbus_control_slicer_nextslice(usbus_t *usbus);

View File

@ -31,7 +31,7 @@ int usbus_control_slicer_nextslice(usbus_t *usbus)
size_t end = bldr->start + ep0->in->len;
if (bldr->cur > end && bldr->start < bldr->reqlen &&
bldr->transfered < bldr->reqlen) {
bldr->transferred < bldr->reqlen) {
bldr->start += ep0->in->len;
bldr->cur = 0;
bldr->len = 0;
@ -96,6 +96,6 @@ void usbus_control_slicer_ready(usbus_t *usbus)
size_t len = bldr->len;
len = len < bldr->reqlen - bldr->start ? len : bldr->reqlen - bldr->start;
bldr->transfered += len;
bldr->transferred += len;
usbdev_ep_ready(ep0->in, len);
}