X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/3757b1760fdd197a8c7227bbfd0b11ee33eb99e6..2281750b5fdf046ed606e567eb60cf4e647015dd:/Bootloaders/TeensyHID/TeensyHID.c?ds=inline diff --git a/Bootloaders/TeensyHID/TeensyHID.c b/Bootloaders/TeensyHID/TeensyHID.c index 4b9224abc..84ec7aac7 100644 --- a/Bootloaders/TeensyHID/TeensyHID.c +++ b/Bootloaders/TeensyHID/TeensyHID.c @@ -51,9 +51,9 @@ int main(void) while (RunBootloader) USB_USBTask(); - - /* Wait 100ms to give the host time to register the disconnection */ - _delay_ms(100); + + /* Turn off the USB interface, disconnect from the host */ + USB_ShutDown(); /* Enable the watchdog and force a timeout to reset the AVR */ wdt_enable(WDTO_250MS);