Stop using obsolete functions

`USE_PLUGINS` and `event_handler_hook_use` are obsolete, use the proper APIs
instead.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent 4f222e4e2b
commit bd1f7dfe36

@ -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();

@ -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();

@ -28,7 +28,7 @@ EEPROMKeymapProgrammer::EEPROMKeymapProgrammer(void) {
}
void EEPROMKeymapProgrammer::begin(void) {
event_handler_hook_use(eventHandlerHook);
Kaleidoscope.useEventHandlerHook(eventHandlerHook);
}
void EEPROMKeymapProgrammer::nextState(void) {

Loading…
Cancel
Save