]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
fix not correctly showing 32u2 warning message when Endpints are more than 4.
authoryangdigi <yangdotcn@gmail.com>
Wed, 3 Jan 2018 03:06:08 +0000 (11:06 +0800)
committeryangdigi <yangdotcn@gmail.com>
Wed, 3 Jan 2018 03:06:08 +0000 (11:06 +0800)
tmk_core/protocol/lufa/descriptor.h

index 119f4298549340596aa4002e703d43c5e6ad0a34..4af872b744c0820f52ddb26ac758a52f81bbb1b1 100644 (file)
@@ -145,9 +145,10 @@ typedef struct
 
 #ifdef NKRO_ENABLE
 #   define NKRO_IN_EPNUM            (CONSOLE_OUT_EPNUM + 1)
-#   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)"
-#   endif
+#endif
+
+#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)"
 #endif