summaryrefslogtreecommitdiffstats
path: root/protocol/lufa
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-09-25 05:23:14 +0200
committertmk <nobody@nowhere>2013-09-25 05:23:14 +0200
commitd267ee2adabdae333d77d4434ba8256c2270bc19 (patch)
tree0ea59461773c2a8c6e0d5519c5339d28c972a7bb /protocol/lufa
parent7d692c492ca999edd827477b914ae38ce43bf519 (diff)
downloadqmk_firmware-d267ee2adabdae333d77d4434ba8256c2270bc19.tar.gz
qmk_firmware-d267ee2adabdae333d77d4434ba8256c2270bc19.tar.xz
Fix LUFA blocking during startup
- Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT
Diffstat (limited to 'protocol/lufa')
-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 a4e57b227..a230d5ba2 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();