diff options
author | Jesse Vincent <jesse@keyboard.io> | 2017-10-02 18:48:39 -0700 |
---|---|---|
committer | Jesse Vincent <jesse@keyboard.io> | 2017-10-02 18:48:39 -0700 |
commit | 6bdef3675b42fceda8dbf62bf639361c3c00f3ce (patch) | |
tree | 67bc30014433e02ce92f52d76b26814645738792 | |
parent | 8bfd32d5b998413d5c6049be78d8426b3c13e18b (diff) | |
download | Model01-Firmware-6bdef3675b42fceda8dbf62bf639361c3c00f3ce.tar.gz Model01-Firmware-6bdef3675b42fceda8dbf62bf639361c3c00f3ce.zip |
replace a magic seeming constant with a macro
-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 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)); |