diff --git a/README.md b/README.md index 783ac7b1..9462f369 100644 --- a/README.md +++ b/README.md @@ -50,12 +50,12 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { W(100), T(0), T(1) ); case MACRO_HELLO: - if (key_toggled_on(keyState)) { + if (keyToggledOn(keyState)) { Macros.type(PSTR("Hello world!")); } break; case MACRO_SPECIAL: - if (key_toggled_on(keyState)) { + if (keyToggledOn(keyState)) { // Do something special } break; diff --git a/src/MacroSteps.h b/src/MacroSteps.h index 242ba91a..79e88f36 100644 --- a/src/MacroSteps.h +++ b/src/MacroSteps.h @@ -19,7 +19,7 @@ typedef uint8_t macro_t; #define MACRO_NONE 0 #define MACRO(...) ({static const macro_t __m[] PROGMEM = { __VA_ARGS__, MACRO_ACTION_END }; &__m[0]; }) -#define MACRODOWN(...) (key_toggled_on(keyState) ? MACRO(__VA_ARGS__) : MACRO_NONE) +#define MACRODOWN(...) (keyToggledOn(keyState) ? MACRO(__VA_ARGS__) : MACRO_NONE) #define I(n) MACRO_ACTION_STEP_INTERVAL, n #define W(n) MACRO_ACTION_STEP_WAIT, n