From d267ee2adabdae333d77d4434ba8256c2270bc19 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 25 Sep 2013 12:23:14 +0900 Subject: [PATCH] Fix LUFA blocking during startup - Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT --- protocol/lufa/lufa.c | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.46.2