From d29213ff3d59707db722b161adf24aeac34e56fb Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 25 Feb 2022 06:50:19 +0900 Subject: [PATCH] lufa: Fix startup wait when console is disabled --- tmk_core/protocol/lufa/lufa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index fab3ddeb..a314e5c7 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -762,7 +762,11 @@ int main(void) #ifndef NO_USB_STARTUP_WAIT_LOOP /* wait for USB startup */ - while (USB_DeviceState != DEVICE_STATE_Configured || !console_is_ready()) { + while (USB_DeviceState != DEVICE_STATE_Configured +#ifdef CONSOLE_ENABLE + || !console_is_ready() +#endif + ) { #if defined(INTERRUPT_CONTROL_ENDPOINT) ; #else