Skip to content

Commit

Permalink
Macro.type needs PSTR() macros around strings.
Browse files Browse the repository at this point in the history
Algernon talked me out of putting the newline in the macro
  • Loading branch information
obra committed Jun 11, 2017
1 parent 8cf3f68 commit 221101c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Model01-Firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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,
Expand Down

0 comments on commit 221101c

Please sign in to comment.