From e3988f19dda2345032f575f31f275693571d9267 Mon Sep 17 00:00:00 2001 From: Nico Date: Tue, 24 Feb 2015 13:31:32 +0100 Subject: [PATCH] Update BootloaderCDC.c --- Bootloaders/CDC/BootloaderCDC.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index 63991de75b..1011404807 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -156,6 +156,9 @@ int main(void) CDC_Task(); USB_USBTask(); } + + /* Wait a short time to end all USB transactions and then disconnect */ + _delay_us(1000); /* Disconnect from the host - USB interface will be reset later along with the AVR */ USB_Detach();