]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix LUFA blocking during startup
authortmk <nobody@nowhere>
Wed, 25 Sep 2013 03:23:14 +0000 (12:23 +0900)
committertmk <nobody@nowhere>
Wed, 25 Sep 2013 03:23:14 +0000 (12:23 +0900)
- Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT

protocol/lufa/lufa.c

index a4e57b227d1298ab1b71155d9e8b6bab286caecc..a230d5ba20f2920b01c0eee7717ac783b08dd98e 100644 (file)
@@ -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();