diff options
author | tmk <nobody@nowhere> | 2014-04-27 05:07:27 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-04-27 05:36:41 +0900 |
commit | 22854eb71b84a10ebad0f85841f2b99d38e1da8c (patch) | |
tree | 16ede150938a420cf05bcb7769b73df4794b0f9f /common | |
parent | 5e3f2d2b2e5065a04495f2c55fae0849966b5d23 (diff) | |
download | qmk_firmware-22854eb71b84a10ebad0f85841f2b99d38e1da8c.tar.gz qmk_firmware-22854eb71b84a10ebad0f85841f2b99d38e1da8c.zip |
NKRO is disable when SET_PROTOCOL(boot)
- Command can force to enable NKRO even when boot mode
- After boot keyboard may be in boot mode due to BIOS' request
Diffstat (limited to 'common')
-rw-r--r-- | common/action_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/action_util.c b/common/action_util.c index ebe7150dc..99a3adaab 100644 --- a/common/action_util.c +++ b/common/action_util.c | |||
@@ -67,7 +67,7 @@ void send_keyboard_report(void) { | |||
67 | void add_key(uint8_t key) | 67 | void add_key(uint8_t key) |
68 | { | 68 | { |
69 | #ifdef NKRO_ENABLE | 69 | #ifdef NKRO_ENABLE |
70 | if (keyboard_nkro && keyboard_protocol) { | 70 | if (keyboard_nkro) { |
71 | add_key_bit(key); | 71 | add_key_bit(key); |
72 | return; | 72 | return; |
73 | } | 73 | } |
@@ -78,7 +78,7 @@ void add_key(uint8_t key) | |||
78 | void del_key(uint8_t key) | 78 | void del_key(uint8_t key) |
79 | { | 79 | { |
80 | #ifdef NKRO_ENABLE | 80 | #ifdef NKRO_ENABLE |
81 | if (keyboard_nkro && keyboard_protocol) { | 81 | if (keyboard_nkro) { |
82 | del_key_bit(key); | 82 | del_key_bit(key); |
83 | return; | 83 | return; |
84 | } | 84 | } |
@@ -151,7 +151,7 @@ uint8_t has_anymod(void) | |||
151 | uint8_t get_first_key(void) | 151 | uint8_t get_first_key(void) |
152 | { | 152 | { |
153 | #ifdef NKRO_ENABLE | 153 | #ifdef NKRO_ENABLE |
154 | if (keyboard_nkro && keyboard_protocol) { | 154 | if (keyboard_nkro) { |
155 | uint8_t i = 0; | 155 | uint8_t i = 0; |
156 | for (; i < REPORT_BITS && !keyboard_report->nkro.bits[i]; i++) | 156 | for (; i < REPORT_BITS && !keyboard_report->nkro.bits[i]; i++) |
157 | ; | 157 | ; |