From d6a528f9a03fe338e30d93f306e0482612e02e3e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 22 Jan 2018 16:27:39 +1100 Subject: Add short delays before detaching from the USB bus in the bootloaders (thanks to NicoHood). --- Bootloaders/Printer/BootloaderPrinter.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bootloaders/Printer/BootloaderPrinter.c') diff --git a/Bootloaders/Printer/BootloaderPrinter.c b/Bootloaders/Printer/BootloaderPrinter.c index 6fde80290..da4162172 100644 --- a/Bootloaders/Printer/BootloaderPrinter.c +++ b/Bootloaders/Printer/BootloaderPrinter.c @@ -401,6 +401,9 @@ int main(void) 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(); -- cgit v1.2.3