From 6bdef3675b42fceda8dbf62bf639361c3c00f3ce Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 2 Oct 2017 18:48:39 -0700 Subject: replace a magic seeming constant with a macro --- Model01-Firmware.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3