X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fprotocol%2Flufa%2Flufa.c;h=60849aea4c935da108839c6e583d596540624719;hb=c8d67963586eaa90b4b673a493557fe88df9febc;hp=1fd6eb34bceaa33447d2526cab1acf6c228e794b;hpb=09d380d31366d3f965b376031964bfd76526f018;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 1fd6eb34..60849aea 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -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 */