Fix LUFA blocking during startup
- Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT
This commit is contained in:
parent
b482e655ad
commit
0e22053d35
@ -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();
|
||||
|
Reference in New Issue
Block a user