Stop using obsolete functions

`USE_PLUGINS` and `event_handler_hook_use` are being phased out, stop using them.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent 997b3a58e0
commit 0cb75c5e7f

@ -40,7 +40,7 @@ void cycleAction(Key previous_key, uint8_t cycle_count) {
}
void setup(void) {
USE_PLUGINS(&Cycle);
Kaleidoscope.use(&Cycle);
Kaleidoscope.setup();
}

@ -52,7 +52,7 @@ void cycleAction(Key previous_key, uint8_t cycle_count) {
}
void setup() {
USE_PLUGINS(&Cycle);
Kaleidoscope.use(&Cycle);
Kaleidoscope.setup();
}

@ -35,7 +35,7 @@ Cycle::Cycle(void) {
}
void Cycle::begin(void) {
event_handler_hook_use(eventHandlerHook);
Kaleidoscope.useEventHandlerHook(eventHandlerHook);
}
void Cycle::replace(Key key) {

Loading…
Cancel
Save