diff options
author | IBNobody <IBNobody@users.noreply.github.com> | 2016-09-06 23:19:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 23:19:01 -0500 |
commit | 558f3ec1eb325caf706efc15e2fab26121aba442 (patch) | |
tree | a14b00c189492426beadc69c2094055f833b811f /tmk_core/protocol/pjrc/usb_keyboard.c | |
parent | f0388a5b1334ce0b8c8a359a0a8a1460e456b8c5 (diff) |
Use keyboard config for nkro (#7)
* removing nkro references - wip
* changed NKRO to be defined by keymap_config
Diffstat (limited to 'tmk_core/protocol/pjrc/usb_keyboard.c')
-rw-r--r-- | tmk_core/protocol/pjrc/usb_keyboard.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tmk_core/protocol/pjrc/usb_keyboard.c b/tmk_core/protocol/pjrc/usb_keyboard.c index 4b87b5d7b5..05f4797340 100644 --- a/tmk_core/protocol/pjrc/usb_keyboard.c +++ b/tmk_core/protocol/pjrc/usb_keyboard.c @@ -30,6 +30,12 @@ #include "util.h" #include "host.h" +#ifdef NKRO_ENABLE + #include "keycode_config.h" + + extern keymap_config_t keymap_config; +#endif + // protocol setting from the host. We use exactly the same report // either way, so this variable only stores the setting since we @@ -56,7 +62,7 @@ int8_t usb_keyboard_send_report(report_keyboard_t *report) int8_t result = 0; #ifdef NKRO_ENABLE - if (keyboard_nkro) + if (keymap_config.nkro) result = send_report(report, KBD2_ENDPOINT, 0, KBD2_SIZE); else #endif |