From bde64666fbdda0a275344c0e5e5175f770be516d Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 8 Jun 2009 10:06:49 +0000 Subject: Finished CDC device class driver documentation. --- Bootloaders/DFU/BootloaderDFU.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Bootloaders') diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 1850803d4..6da741e39 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -462,8 +462,10 @@ static void DiscardFillerBytes(uint8_t NumberOfBytes) /* Wait until next data packet received */ while (!(Endpoint_IsOUTReceived())); } - - Endpoint_Discard_Byte(); + else + { + Endpoint_Discard_Byte(); + } } } -- cgit v1.2.3