summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Vincent <jesse@keyboard.io>2017-07-24 14:43:50 -0700
committerJesse Vincent <jesse@keyboard.io>2017-07-24 14:43:50 -0700
commitddc4e15fbf5b7f3f1216871c8adb37a9418d4e94 (patch)
treeb6144bc0012daae5af2903bb2af81d7a35843856
parent85899bbaff18435857d54e0227b387b8a09e5564 (diff)
downloadmodel01-firmware-ddc4e15fbf5b7f3f1216871c8adb37a9418d4e94.tar.gz
model01-firmware-ddc4e15fbf5b7f3f1216871c8adb37a9418d4e94.tar.bz2
model01-firmware-ddc4e15fbf5b7f3f1216871c8adb37a9418d4e94.zip
switch to new CamelCased' toggle functions
-rw-r--r--Model01-Firmware.ino6
1 files changed, 3 insertions, 3 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index cc4e2b6..6111088 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -96,12 +96,12 @@ static LEDSolidColor solidIndigo(0, 0, 170);
static LEDSolidColor solidViolet(130, 0, 120);
const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
- if (macroIndex == TOGGLENUMLOCK && key_toggled_on(keyState)) {
+ if (macroIndex == TOGGLENUMLOCK && keyToggledOn(keyState)) {
return NumLock.toggle();
- } else if (macroIndex == 1 && key_toggled_on(keyState)) {
+ } else if (macroIndex == 1 && keyToggledOn(keyState)) {
Macros.type(PSTR("Keyboardio Model 01 - Kaleidoscope "));
Macros.type(PSTR(BUILD_INFORMATION));
- } else if (macroIndex == MACRO_ANY && key_toggled_on(keyState)) {
+ } else if (macroIndex == MACRO_ANY && keyToggledOn(keyState)) {
Keyboard.press(Key_A.keyCode + (uint8_t)(millis() % 36));
Keyboard.sendReport();
}