diff options
Diffstat (limited to 'Bootloaders/TeensyHID/TeensyHID.c')
-rw-r--r-- | Bootloaders/TeensyHID/TeensyHID.c | 6 |
1 files changed, 3 insertions, 3 deletions
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);
|