From 0e22053d35f71530ff6a1a8eabbd134661bdc677 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();