\r
while (RunBootloader)\r
USB_USBTask();\r
-\r
- /* Wait 100ms to give the host time to register the disconnection */\r
- _delay_ms(100);\r
+ \r
+ /* Turn off the USB interface, disconnect from the host */\r
+ USB_ShutDown();\r
\r
/* Enable the watchdog and force a timeout to reset the AVR */\r
wdt_enable(WDTO_250MS);\r