summaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
authortmk <hasu@tmk-kbd.com>2015-09-20 14:34:13 +0900
committertmk <hasu@tmk-kbd.com>2015-09-20 14:34:13 +0900
commited9766a7d44cd727dbd59008eff4258745ff87cf (patch)
tree27c19156051b82a3b558e2f234799d57e205a671 /tmk_core/common
parente8a4a63ec45cf5052d8a054182ab83fdbafc3ff6 (diff)
core: Fix for disabling NKRO in Boot protocol
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/action_util.c6
-rw-r--r--tmk_core/common/command.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/tmk_core/common/action_util.c b/tmk_core/common/action_util.c
index dbee630d18..f81877dd9f 100644
--- a/tmk_core/common/action_util.c
+++ b/tmk_core/common/action_util.c
@@ -76,7 +76,7 @@ void send_keyboard_report(void) {
void add_key(uint8_t key)
{
#ifdef NKRO_ENABLE
- if (keyboard_nkro) {
+ if (keyboard_protocol && keyboard_nkro) {
add_key_bit(key);
return;
}
@@ -87,7 +87,7 @@ void add_key(uint8_t key)
void del_key(uint8_t key)
{
#ifdef NKRO_ENABLE
- if (keyboard_nkro) {
+ if (keyboard_protocol && keyboard_nkro) {
del_key_bit(key);
return;
}
@@ -160,7 +160,7 @@ uint8_t has_anymod(void)
uint8_t get_first_key(void)
{
#ifdef NKRO_ENABLE
- if (keyboard_nkro) {
+ if (keyboard_protocol && keyboard_nkro) {
uint8_t i = 0;
for (; i < KEYBOARD_REPORT_BITS && !keyboard_report->nkro.bits[i]; i++)
;
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index a53cac6148..420e7eb9b4 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -315,6 +315,7 @@ static bool command_common(uint8_t code)
print_val_hex8(host_keyboard_leds());
print_val_hex8(keyboard_protocol);
print_val_hex8(keyboard_idle);
+ print_val_hex8(keyboard_nkro);
print_val_hex32(timer_count);
#ifdef PROTOCOL_PJRC