core: lufa: Add delay for console startup
This commit is contained in:
parent
09d380d313
commit
c8d6796358
1 changed files with 11 additions and 0 deletions
|
|
@ -651,6 +651,17 @@ int main(void)
|
||||||
USB_USBTask();
|
USB_USBTask();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* wait for Console startup */
|
||||||
|
// TODO: long delay often works anyhoo but proper startup would be better
|
||||||
|
uint16_t delay = 2000;
|
||||||
|
while (delay--) {
|
||||||
|
#ifndef INTERRUPT_CONTROL_ENDPOINT
|
||||||
|
USB_USBTask();
|
||||||
|
#endif
|
||||||
|
_delay_ms(1);
|
||||||
|
}
|
||||||
|
|
||||||
print("USB configured.\n");
|
print("USB configured.\n");
|
||||||
|
|
||||||
/* init modules */
|
/* init modules */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue