[lm4f/usb] fixed lm4f_ep_write_packet() when single byte copied to buffer.

This commit is contained in:
Dirk Braun 2013-07-07 23:20:00 +02:00 committed by Piotr Esden-Tempski
parent 5ea4763845
commit ad29d0ce31
1 changed files with 1 additions and 0 deletions

View File

@ -386,6 +386,7 @@ static uint16_t lm4f_ep_write_packet(usbd_device *usbd_dev, uint8_t addr,
}
if (len & 0x1) {
USB_FIFO8(ep) = *((uint8_t *)(buf + i));
i += 1;
}
if (ep == 0) {