Adapted the sketch to changes in the Key API
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
This commit is contained in:
parent
4299824b11
commit
25d21b6386
@ -305,7 +305,7 @@ static void anyKeyMacro(uint8_t keyState) {
|
|||||||
static Key lastKey;
|
static Key lastKey;
|
||||||
bool toggledOn = false;
|
bool toggledOn = false;
|
||||||
if (keyToggledOn(keyState)) {
|
if (keyToggledOn(keyState)) {
|
||||||
lastKey.keyCode = Key_A.keyCode + (uint8_t)(millis() % 36);
|
lastKey.setKeyCode(Key_A.getKeyCode() + (uint8_t)(millis() % 36));
|
||||||
toggledOn = true;
|
toggledOn = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user