1
0

Merge pull request #92 from CapeLeidokos/pr_key_API

Adapted the sketch to changes in the Key API
This commit is contained in:
Gergely Nagy 2019-11-29 13:18:38 +01:00 committed by GitHub
commit 2f9d140ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }