From a8ef66987d5f0ba2211558fea49c5868cda94521 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Mon, 22 Sep 2014 18:31:18 +0900 Subject: [PATCH] Fix compatibility problem with NKRO --- common/action_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/action_util.c b/common/action_util.c index de9522a0..c4ca8cfa 100644 --- a/common/action_util.c +++ b/common/action_util.c @@ -31,6 +31,8 @@ static uint8_t real_mods = 0; static uint8_t weak_mods = 0; #ifdef USB_6KRO_ENABLE +#undef REPORT_KEYS +#define REPORT_KEYS 6 #define RO_ADD(a, b) ((a + b) % REPORT_KEYS) #define RO_SUB(a, b) ((a - b + REPORT_KEYS) % REPORT_KEYS) #define RO_INC(a) RO_ADD(a, 1)