X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/d3f11eb52809353d7f103cea8b4332f335c26697..c05c7c7df46a0377db8a72cb32f06aa40153d3e1:/LUFA/Drivers/USB/HighLevel/USBInterrupt.c diff --git a/LUFA/Drivers/USB/HighLevel/USBInterrupt.c b/LUFA/Drivers/USB/HighLevel/USBInterrupt.c index f58e67010..3cf4bb3e1 100644 --- a/LUFA/Drivers/USB/HighLevel/USBInterrupt.c +++ b/LUFA/Drivers/USB/HighLevel/USBInterrupt.c @@ -229,7 +229,7 @@ ISR(USB_GEN_vect, ISR_BLOCK) #endif } -#if defined(INTERRUPT_CONTROL_ENDPOINT) +#if defined(INTERRUPT_CONTROL_ENDPOINT) && defined(USB_CAN_BE_DEVICE) ISR(USB_COM_vect, ISR_BLOCK) { uint8_t PrevSelectedEndpoint = Endpoint_GetCurrentEndpoint();