projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that USB_STREAM_TIMEOUT_MS is set in the MassStorageHost ClassDriver demo...
[pub/lufa.git]
/
Bootloaders
/
TeensyHID
/
TeensyHID.c
diff --git
a/Bootloaders/TeensyHID/TeensyHID.c
b/Bootloaders/TeensyHID/TeensyHID.c
index
4b9224a
..
84ec7aa
100644
(file)
--- a/
Bootloaders/TeensyHID/TeensyHID.c
+++ b/
Bootloaders/TeensyHID/TeensyHID.c
@@
-51,9
+51,9
@@
int main(void)
\r
while (RunBootloader)
\r
USB_USBTask();
\r
\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
\r
/* Enable the watchdog and force a timeout to reset the AVR */
\r
wdt_enable(WDTO_250MS);
\r