summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-04-27 05:07:27 +0900
committertmk <nobody@nowhere>2014-04-27 05:36:41 +0900
commit22854eb71b84a10ebad0f85841f2b99d38e1da8c (patch)
tree16ede150938a420cf05bcb7769b73df4794b0f9f /common
parent5e3f2d2b2e5065a04495f2c55fae0849966b5d23 (diff)
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/action_util.c b/common/action_util.c
index ebe7150dcc..99a3adaab6 100644
--- a/common/action_util.c
+++ b/common/action_util.c
@@ -67,7 +67,7 @@ void send_keyboard_report(void) {
void add_key(uint8_t key)
{
#ifdef NKRO_ENABLE
- if (keyboard_nkro && keyboard_protocol) {
+ if (keyboard_nkro) {
add_key_bit(key);
return;
}
@@ -78,7 +78,7 @@ void add_key(uint8_t key)
void del_key(uint8_t key)
{
#ifdef NKRO_ENABLE
- if (keyboard_nkro && keyboard_protocol) {
+ if (keyboard_nkro) {
del_key_bit(key);
return;
}
@@ -151,7 +151,7 @@ uint8_t has_anymod(void)
uint8_t get_first_key(void)
{
#ifdef NKRO_ENABLE
- if (keyboard_nkro && keyboard_protocol) {
+ if (keyboard_nkro) {
uint8_t i = 0;
for (; i < REPORT_BITS && !keyboard_report->nkro.bits[i]; i++)
;