diff --git a/src/Kaleidoscope/Qukeys.cpp b/src/Kaleidoscope/Qukeys.cpp index e15b2bd1..c2f0bd50 100644 --- a/src/Kaleidoscope/Qukeys.cpp +++ b/src/Kaleidoscope/Qukeys.cpp @@ -87,15 +87,15 @@ int8_t Qukeys::searchQueue(uint8_t key_addr) { } // flush a single entry from the head of the queue -void Qukeys::flushKey(int8_t state, uint8_t keyswitch_state) { +void Qukeys::flushKey(int8_t qukey_state, uint8_t keyswitch_state) { int8_t qukey_index = lookupQukey(key_queue_[0].addr); if (qukey_index != QUKEY_NOT_FOUND) { - qukeys_[qukey_index].state = state; + qukeys_[qukey_index].state = qukey_state; } byte row = addr::row(key_queue_[0].addr); byte col = addr::col(key_queue_[0].addr); Key keycode = Key_NoKey; - if (state == QUKEY_STATE_ALTERNATE && qukey_index != QUKEY_NOT_FOUND) { + if (qukey_state == QUKEY_STATE_ALTERNATE && qukey_index != QUKEY_NOT_FOUND) { keycode = qukeys_[qukey_index].alt_keycode; } else { keycode = Layer.lookup(row, col); diff --git a/src/Kaleidoscope/Qukeys.h b/src/Kaleidoscope/Qukeys.h index 3e227e70..4e9be630 100644 --- a/src/Kaleidoscope/Qukeys.h +++ b/src/Kaleidoscope/Qukeys.h @@ -90,7 +90,7 @@ class Qukeys : public KaleidoscopePlugin { static int8_t lookupQukey(uint8_t key_addr); static void enqueue(uint8_t key_addr); static int8_t searchQueue(uint8_t key_addr); - static void flushKey(int8_t state, uint8_t keyswitch_state); + static void flushKey(int8_t qukey_state, uint8_t keyswitch_state); static void flushQueue(int8_t index); static Qukey * qukeys_;