lufa: Fix startup wait when console is disabled

This commit is contained in:
tmk 2022-02-25 06:50:19 +09:00
parent 53aecf4dfb
commit d29213ff3d

View file

@ -762,7 +762,11 @@ int main(void)
#ifndef NO_USB_STARTUP_WAIT_LOOP #ifndef NO_USB_STARTUP_WAIT_LOOP
/* wait for USB startup */ /* 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) #if defined(INTERRUPT_CONTROL_ENDPOINT)
; ;
#else #else