diff options
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.c')
| -rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index d6f0c69b6b..2142b04460 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c | |||
| @@ -67,6 +67,11 @@ | |||
| 67 | # include "raw_hid.h" | 67 | # include "raw_hid.h" |
| 68 | #endif | 68 | #endif |
| 69 | 69 | ||
| 70 | #ifdef WAIT_FOR_USB | ||
| 71 | // TODO: Remove backwards compatibility with old define | ||
| 72 | # define USB_WAIT_FOR_ENUMERATION | ||
| 73 | #endif | ||
| 74 | |||
| 70 | uint8_t keyboard_idle = 0; | 75 | uint8_t keyboard_idle = 0; |
| 71 | /* 0: Boot Protocol, 1: Report Protocol(default) */ | 76 | /* 0: Boot Protocol, 1: Report Protocol(default) */ |
| 72 | uint8_t keyboard_protocol = 1; | 77 | uint8_t keyboard_protocol = 1; |
| @@ -807,7 +812,7 @@ void protocol_pre_init(void) { | |||
| 807 | 812 | ||
| 808 | /* wait for USB startup & debug output */ | 813 | /* wait for USB startup & debug output */ |
| 809 | 814 | ||
| 810 | #ifdef WAIT_FOR_USB | 815 | #ifdef USB_WAIT_FOR_ENUMERATION |
| 811 | while (USB_DeviceState != DEVICE_STATE_Configured) { | 816 | while (USB_DeviceState != DEVICE_STATE_Configured) { |
| 812 | # if defined(INTERRUPT_CONTROL_ENDPOINT) | 817 | # if defined(INTERRUPT_CONTROL_ENDPOINT) |
| 813 | ; | 818 | ; |
