aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/action_util.h1
-rw-r--r--protocol/lufa/lufa.c9
2 files changed, 9 insertions, 1 deletions
diff --git a/common/action_util.h b/common/action_util.h
index 939bc2b66..f9d3161a8 100644
--- a/common/action_util.h
+++ b/common/action_util.h
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#define ACTION_UTIL_H 18#define ACTION_UTIL_H
19 19
20#include <stdint.h> 20#include <stdint.h>
21#include "report.h"
21 22
22extern report_keyboard_t *keyboard_report; 23extern report_keyboard_t *keyboard_report;
23 24
diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c
index a230d5ba2..04e8e78f3 100644
--- a/protocol/lufa/lufa.c
+++ b/protocol/lufa/lufa.c
@@ -539,11 +539,18 @@ int main(void)
539{ 539{
540 SetupHardware(); 540 SetupHardware();
541 sei(); 541 sei();
542
543 /* wait for USB startup & debug output */
544 while (USB_DeviceState != DEVICE_STATE_Configured) {
542#if defined(INTERRUPT_CONTROL_ENDPOINT) 545#if defined(INTERRUPT_CONTROL_ENDPOINT)
543 while (USB_DeviceState != DEVICE_STATE_Configured) ; 546 ;
547#else
548 USB_USBTask();
544#endif 549#endif
550 }
545 print("USB configured.\n"); 551 print("USB configured.\n");
546 552
553 /* init modules */
547 keyboard_init(); 554 keyboard_init();
548 host_set_driver(&lufa_driver); 555 host_set_driver(&lufa_driver);
549#ifdef SLEEP_LED_ENABLE 556#ifdef SLEEP_LED_ENABLE