diff options
| author | tmk <nobody@nowhere> | 2013-09-25 12:23:14 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-09-25 12:23:14 +0900 |
| commit | d267ee2adabdae333d77d4434ba8256c2270bc19 (patch) | |
| tree | 0ea59461773c2a8c6e0d5519c5339d28c972a7bb | |
| parent | 7d692c492ca999edd827477b914ae38ce43bf519 (diff) | |
| download | qmk_firmware-d267ee2adabdae333d77d4434ba8256c2270bc19.tar.gz qmk_firmware-d267ee2adabdae333d77d4434ba8256c2270bc19.zip | |
Fix LUFA blocking during startup
- Blocking occurs if built without option INTERRUPT_CONTROL_ENDPOINT
| -rw-r--r-- | protocol/lufa/lufa.c | 2 |
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) | |||
| 539 | { | 539 | { |
| 540 | SetupHardware(); | 540 | SetupHardware(); |
| 541 | sei(); | 541 | sei(); |
| 542 | #if defined(INTERRUPT_CONTROL_ENDPOINT) | ||
| 542 | while (USB_DeviceState != DEVICE_STATE_Configured) ; | 543 | while (USB_DeviceState != DEVICE_STATE_Configured) ; |
| 544 | #endif | ||
| 543 | print("USB configured.\n"); | 545 | print("USB configured.\n"); |
| 544 | 546 | ||
| 545 | keyboard_init(); | 547 | keyboard_init(); |
