From: tmk Date: Wed, 25 Sep 2013 03:23:14 +0000 (+0900) Subject: Fix LUFA blocking during startup X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d267ee2adabdae333d77d4434ba8256c2270bc19;p=max%2Ftmk_keyboard.git Fix LUFA blocking during startup - Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT --- diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c index a4e57b22..a230d5ba 100644 --- a/protocol/lufa/lufa.c +++ b/protocol/lufa/lufa.c @@ -539,7 +539,9 @@ int main(void) { SetupHardware(); sei(); +#if defined(INTERRUPT_CONTROL_ENDPOINT) while (USB_DeviceState != DEVICE_STATE_Configured) ; +#endif print("USB configured.\n"); keyboard_init();