core: lufa: Add delay for console startup

This commit is contained in:
tmk 2018-03-01 12:36:21 +09:00
parent 09d380d313
commit c8d6796358

View file

@ -651,6 +651,17 @@ int main(void)
USB_USBTask();
#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");
/* init modules */