diff --git a/README.md b/README.md index 74ce3704..8c082f26 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ that. #include const macro_t *macroAction(uint8_t macro_index, uint8_t key_state) { - if (macro_index == 0 && key_toggled_on(key_state)) + if (macro_index == 0 && keyToggledOn(key_state)) GhostInTheFirmware.activate(); return MACRO_NONE; diff --git a/examples/GhostInTheFirmware/GhostInTheFirmware.ino b/examples/GhostInTheFirmware/GhostInTheFirmware.ino index 81d41ea9..d3a08ddc 100644 --- a/examples/GhostInTheFirmware/GhostInTheFirmware.ino +++ b/examples/GhostInTheFirmware/GhostInTheFirmware.ino @@ -45,7 +45,7 @@ static Key eventDropper(Key, byte, byte, uint8_t) { } const macro_t *macroAction(uint8_t macro_index, uint8_t key_state) { - if (macro_index == 0 && key_toggled_on(key_state)) + if (macro_index == 0 && keyToggledOn(key_state)) GhostInTheFirmware.activate(); return MACRO_NONE;