summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Vincent <jesse@keyboard.io>2017-10-02 18:48:39 -0700
committerJesse Vincent <jesse@keyboard.io>2017-10-02 18:48:39 -0700
commit6bdef3675b42fceda8dbf62bf639361c3c00f3ce (patch)
tree67bc30014433e02ce92f52d76b26814645738792
parent8bfd32d5b998413d5c6049be78d8426b3c13e18b (diff)
downloadmodel01-firmware-6bdef3675b42fceda8dbf62bf639361c3c00f3ce.tar.gz
model01-firmware-6bdef3675b42fceda8dbf62bf639361c3c00f3ce.tar.bz2
model01-firmware-6bdef3675b42fceda8dbf62bf639361c3c00f3ce.zip
replace a magic seeming constant with a macro
-rw-r--r--Model01-Firmware.ino2
1 files changed, 1 insertions, 1 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 1be0fcc..9216482 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -97,7 +97,7 @@ static kaleidoscope::LEDSolidColor solidIndigo(0, 0, 170);
static kaleidoscope::LEDSolidColor solidViolet(130, 0, 120);
const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
- if (macroIndex == 1) {
+ if (macroIndex == MACRO_VERSION_INFO) {
if (keyToggledOn(keyState)) {
Macros.type(PSTR("Keyboardio Model 01 - Kaleidoscope "));
Macros.type(PSTR(BUILD_INFORMATION));