X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/04774208b6d4131466a2b5e44af314252ab1734e..bb3879331211a19c3adc3927cac870cc7e36b775:/Bootloaders/TeensyHID/TeensyHID.c 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);