X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fprotocol%2Flufa%2Flufa.c;h=b1567fa9bdac242dfbe9a12395c7db8212177748;hb=b7d80d8b0e59b697ad1e0f58f9fcb0d1247ef46e;hp=cfd76c2edfa6c6503325b5d77475c9fc51175df1;hpb=5b9da20efa837973ed4e9cde49b173bcd05e6ce6;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index cfd76c2e..b1567fa9 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -634,15 +634,19 @@ int main(void) keyboard_init(); /* wait for Console startup */ - // TODO: long delay often works anyhoo but proper startup would be better - // 1000ms delay of hid_listen may affect this - uint16_t delay = 2000; - while (delay--) { -#ifndef INTERRUPT_CONTROL_ENDPOINT - USB_USBTask(); -#endif - _delay_ms(1); + // TODO: 2000ms delay often works anyhoo but proper startup would be better + // 1000ms delay of hid_listen affects this probably + #ifdef CONSOLE_ENABLE + if (debug_enable) { + uint16_t delay = 2000; + while (delay--) { + #ifndef INTERRUPT_CONTROL_ENDPOINT + USB_USBTask(); + #endif + _delay_ms(1); + } } + #endif hook_late_init();