From 221101c6aa64281b999fc9ee900af5deae7c3be0 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 11 Jun 2017 19:40:55 +0800 Subject: Macro.type needs PSTR() macros around strings. Algernon talked me out of putting the newline in the macro --- Model01-Firmware.ino | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 967beea..ed99935 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -99,9 +99,8 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { if (macroIndex == TOGGLENUMLOCK && key_toggled_on(keyState)) { return NumLock.toggle(Macros.row, Macros.col, NUMPAD_KEYMAP); } else if (macroIndex == 1 && key_toggled_on(keyState)) { - Macros.type("Keyboardio Model 01 - Kaleidoscope "); - Macros.type(BUILD_INFORMATION); - Macros.type("\n"); + Macros.type(PSTR("Keyboardio Model 01 - Kaleidoscope ")); + Macros.type(PSTR(BUILD_INFORMATION)); } else if (macroIndex == MACRO_ANY && key_toggled_on(keyState)) { Keyboard.press(Key_A.keyCode + (uint8_t)(millis() % 36)); Keyboard.sendReport(); @@ -111,7 +110,7 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { void setup() { Kaleidoscope.setup(KEYMAP_SIZE); - + BootKeyboard.begin(); Kaleidoscope.use(&TestMode, &LEDControl, &LEDOff, &solidRed, &solidOrange, &solidYellow, &solidGreen, &solidBlue, &solidIndigo, &solidViolet, -- cgit v1.2.3