fix not correctly showing 32u2 warning message when Endpints are more than 4.

This commit is contained in:
yangdigi 2018-01-03 11:06:08 +08:00
parent 5f6550a0be
commit 78f4f666c6

View file

@ -145,10 +145,11 @@ typedef struct
#ifdef NKRO_ENABLE #ifdef NKRO_ENABLE
# define NKRO_IN_EPNUM (CONSOLE_OUT_EPNUM + 1) # define NKRO_IN_EPNUM (CONSOLE_OUT_EPNUM + 1)
#endif
#if defined(__AVR_ATmega32U2__) && NKRO_IN_EPNUM > 4 #if defined(__AVR_ATmega32U2__) && NKRO_IN_EPNUM > 4
# error "Endpoints are not available enough to support all functions. Remove some in Makefile.(MOUSEKEY, EXTRAKEY, CONSOLE, NKRO)" # error "Endpoints are not available enough to support all functions. Remove some in Makefile.(MOUSEKEY, EXTRAKEY, CONSOLE, NKRO)"
#endif #endif
#endif
#define KEYBOARD_EPSIZE 8 #define KEYBOARD_EPSIZE 8