1
0

Fix 6KRO compatibility issue with NKRO

This commit is contained in:
Kai Ryu 2014-12-10 10:21:58 +09:00
parent f73fd6ee59
commit e36e2493ba

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)