diff options
author | 2016-09-08 17:48:54 -0400 | |
---|---|---|
committer | 2016-09-08 17:48:54 -0400 | |
commit | 4a54ece4684478e29187d3b40ee07d6fa2c767f4 (patch) | |
tree | 6a0ab69e67fe3e8027ecc9b1bb1985965a50cb5b /tmk_core/common/action_util.c | |
parent | 0f111182a6bf217a37513d5c39fdb3d2a715996e (diff) | |
parent | fe2aed0d1c8d1535c160755b76186972071aed02 (diff) | |
download | qmk_firmware-4a54ece4684478e29187d3b40ee07d6fa2c767f4.tar.gz |
Merge pull request #730 from IBNobody/master
Change NKRO Report Size = 32, User Print
Diffstat (limited to 'tmk_core/common/action_util.c')
-rw-r--r-- | tmk_core/common/action_util.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tmk_core/common/action_util.c b/tmk_core/common/action_util.c index 61ff202be..cb4b25264 100644 --- a/tmk_core/common/action_util.c +++ b/tmk_core/common/action_util.c @@ -20,6 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "action_util.h" #include "action_layer.h" #include "timer.h" +#include "keycode_config.h" + +extern keymap_config_t keymap_config; + static inline void add_key_byte(uint8_t code); static inline void del_key_byte(uint8_t code); @@ -139,7 +143,7 @@ void send_keyboard_report(void) { void add_key(uint8_t key) { #ifdef NKRO_ENABLE - if (keyboard_protocol && keyboard_nkro) { + if (keyboard_protocol && keymap_config.nkro) { add_key_bit(key); return; } @@ -150,7 +154,7 @@ void add_key(uint8_t key) void del_key(uint8_t key) { #ifdef NKRO_ENABLE - if (keyboard_protocol && keyboard_nkro) { + if (keyboard_protocol && keymap_config.nkro) { del_key_bit(key); return; } @@ -231,7 +235,7 @@ uint8_t has_anymod(void) uint8_t get_first_key(void) { #ifdef NKRO_ENABLE - if (keyboard_protocol && keyboard_nkro) { + if (keyboard_protocol && keymap_config.nkro) { uint8_t i = 0; for (; i < KEYBOARD_REPORT_BITS && !keyboard_report->nkro.bits[i]; i++) ; |