Browse Source

Fix 6KRO compatibility issue with NKRO

lr94
Kai Ryu 9 years ago
parent
commit
e36e2493ba
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      common/action_util.c

+ 2
- 2
common/action_util.c View File

@@ -31,8 +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
#undef KEYBOARD_REPORT_KEYS
#define KEYBOARD_REPORT_KEYS 6
#define RO_ADD(a, b) ((a + b) % KEYBOARD_REPORT_KEYS)
#define RO_SUB(a, b) ((a - b + KEYBOARD_REPORT_KEYS) % KEYBOARD_REPORT_KEYS)
#define RO_INC(a) RO_ADD(a, 1)