aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Model01-Firmware.ino7
1 files changed, 5 insertions, 2 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 5fd75f8..a5363f0 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -291,11 +291,14 @@ static void versionInfoMacro(uint8_t keyState) {
static void anyKeyMacro(uint8_t keyState) {
static Key lastKey;
- if (keyToggledOn(keyState))
+ bool toggledOn = false;
+ if (keyToggledOn(keyState)) {
lastKey.keyCode = Key_A.keyCode + (uint8_t)(millis() % 36);
+ toggledOn = true;
+ }
if (keyIsPressed(keyState))
- kaleidoscope::hid::pressKey(lastKey);
+ kaleidoscope::hid::pressKey(lastKey, toggledOn);
}