summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-09-25 12:23:14 +0900
committertmk <nobody@nowhere>2013-09-25 12:23:14 +0900
commitd267ee2adabdae333d77d4434ba8256c2270bc19 (patch)
tree0ea59461773c2a8c6e0d5519c5339d28c972a7bb
parent7d692c492ca999edd827477b914ae38ce43bf519 (diff)
Fix LUFA blocking during startup
- Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT
-rw-r--r--protocol/lufa/lufa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c
index a4e57b227d..a230d5ba20 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();