[lm4f/usb] fixed lm4f_ep_write_packet() when single byte copied to buffer.
This commit is contained in:
parent
5ea4763845
commit
ad29d0ce31
@ -386,6 +386,7 @@ static uint16_t lm4f_ep_write_packet(usbd_device *usbd_dev, uint8_t addr,
|
|||||||
}
|
}
|
||||||
if (len & 0x1) {
|
if (len & 0x1) {
|
||||||
USB_FIFO8(ep) = *((uint8_t *)(buf + i));
|
USB_FIFO8(ep) = *((uint8_t *)(buf + i));
|
||||||
|
i += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ep == 0) {
|
if (ep == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user