diff options
author | Gergely Nagy <algernon@users.noreply.github.com> | 2019-11-29 13:18:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-29 13:18:38 +0100 |
commit | 2f9d140ba94d6c5934ad17eed98654211706c7a7 (patch) | |
tree | e928eb7895b4e632ca566ccbc132a3a6e7a989ea | |
parent | 4299824b114a001fd74ae790669ff0d39563d62d (diff) | |
parent | 25d21b6386144e499ed3aba86e80d263e49e3784 (diff) | |
download | Model01-Firmware-2f9d140ba94d6c5934ad17eed98654211706c7a7.tar.gz Model01-Firmware-2f9d140ba94d6c5934ad17eed98654211706c7a7.zip |
Merge pull request #92 from CapeLeidokos/pr_key_API
Adapted the sketch to changes in the Key API
-rw-r--r-- | Model01-Firmware.ino | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index f30171d..32623c3 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -305,7 +305,7 @@ static void anyKeyMacro(uint8_t keyState) { static Key lastKey; bool toggledOn = false; if (keyToggledOn(keyState)) { - lastKey.keyCode = Key_A.keyCode + (uint8_t)(millis() % 36); + lastKey.setKeyCode(Key_A.getKeyCode() + (uint8_t)(millis() % 36)); toggledOn = true; } |