lufa: Fix startup wait when console is disabled
This commit is contained in:
parent
53aecf4dfb
commit
d29213ff3d
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue