Skip to content

Commit

Permalink
Fix LUFA blocking during startup
Browse files Browse the repository at this point in the history
- Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT
  • Loading branch information
yashikno committed Sep 25, 2013
1 parent 7d692c4 commit d267ee2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocol/lufa/lufa.c
Expand Up @@ -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();
Expand Down

0 comments on commit d267ee2

Please sign in to comment.