aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fleissner <florian.fleissner@inpartik.de>2019-11-12 18:15:37 +0100
committerFlorian Fleissner <florian.fleissner@inpartik.de>2019-11-12 18:15:37 +0100
commit25d21b6386144e499ed3aba86e80d263e49e3784 (patch)
treee928eb7895b4e632ca566ccbc132a3a6e7a989ea
parent4299824b114a001fd74ae790669ff0d39563d62d (diff)
downloadModel01-Firmware-25d21b6386144e499ed3aba86e80d263e49e3784.tar.gz
Model01-Firmware-25d21b6386144e499ed3aba86e80d263e49e3784.zip
Adapted the sketch to changes in the Key API
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
-rw-r--r--Model01-Firmware.ino2
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;
}