From ad29d0ce31e5de9b97f5dfaa4ebb2c277a0a44d0 Mon Sep 17 00:00:00 2001 From: Dirk Braun Date: Sun, 7 Jul 2013 23:20:00 +0200 Subject: [PATCH] [lm4f/usb] fixed lm4f_ep_write_packet() when single byte copied to buffer. --- lib/lm4f/usb_lm4f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lm4f/usb_lm4f.c b/lib/lm4f/usb_lm4f.c index e2c640e3..e70e6047 100644 --- a/lib/lm4f/usb_lm4f.c +++ b/lib/lm4f/usb_lm4f.c @@ -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) {