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:
parent
9eee6bc0a1
commit
063ee3352c
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user