From bd1f7dfe36b3a013b67b838ce64bae6a7c825eb7 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 17 Aug 2017 11:46:19 +0200 Subject: [PATCH] Stop using obsolete functions `USE_PLUGINS` and `event_handler_hook_use` are obsolete, use the proper APIs instead. Signed-off-by: Gergely Nagy --- README.md | 2 +- examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino | 2 +- src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4e32a32e..8b660d72 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { } void setup() { - USE_PLUGINS(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); + Kaleidoscope.use(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); Kaleidoscope.setup(); diff --git a/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino b/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino index ac86f472..0f7a937a 100644 --- a/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino +++ b/examples/EEPROM-Keymap-Programmer/EEPROM-Keymap-Programmer.ino @@ -52,7 +52,7 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { void setup() { Serial.begin(9600); - USE_PLUGINS(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); + Kaleidoscope.use(&EEPROMKeymapProgrammer, &EEPROMKeymap, &Macros); Kaleidoscope.setup(); diff --git a/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp b/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp index 4b7e4369..824e4936 100644 --- a/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp +++ b/src/Kaleidoscope/EEPROM-Keymap-Programmer.cpp @@ -28,7 +28,7 @@ EEPROMKeymapProgrammer::EEPROMKeymapProgrammer(void) { } void EEPROMKeymapProgrammer::begin(void) { - event_handler_hook_use(eventHandlerHook); + Kaleidoscope.useEventHandlerHook(eventHandlerHook); } void EEPROMKeymapProgrammer::nextState(void) {