Fix LUFA blocking during startup
- Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT
This commit is contained in:
parent
7d692c492c
commit
d267ee2ada
1 changed files with 2 additions and 0 deletions
|
@ -539,7 +539,9 @@ int main(void)
|
||||||
{
|
{
|
||||||
SetupHardware();
|
SetupHardware();
|
||||||
sei();
|
sei();
|
||||||
|
#if defined(INTERRUPT_CONTROL_ENDPOINT)
|
||||||
while (USB_DeviceState != DEVICE_STATE_Configured) ;
|
while (USB_DeviceState != DEVICE_STATE_Configured) ;
|
||||||
|
#endif
|
||||||
print("USB configured.\n");
|
print("USB configured.\n");
|
||||||
|
|
||||||
keyboard_init();
|
keyboard_init();
|
||||||
|
|
Loading…
Reference in a new issue