From 0cb75c5e7ff03734678e88254b7625e4dcc698c0 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 17 Aug 2017 11:42:03 +0200 Subject: [PATCH] Stop using obsolete functions `USE_PLUGINS` and `event_handler_hook_use` are being phased out, stop using them. Signed-off-by: Gergely Nagy --- README.md | 2 +- examples/Cycle/Cycle.ino | 2 +- src/Kaleidoscope/Cycle.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8ef324df..2f5d166b 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ void cycleAction(Key previous_key, uint8_t cycle_count) { } void setup(void) { - USE_PLUGINS(&Cycle); + Kaleidoscope.use(&Cycle); Kaleidoscope.setup(); } diff --git a/examples/Cycle/Cycle.ino b/examples/Cycle/Cycle.ino index 49a206b9..8d1d7f8f 100644 --- a/examples/Cycle/Cycle.ino +++ b/examples/Cycle/Cycle.ino @@ -52,7 +52,7 @@ void cycleAction(Key previous_key, uint8_t cycle_count) { } void setup() { - USE_PLUGINS(&Cycle); + Kaleidoscope.use(&Cycle); Kaleidoscope.setup(); } diff --git a/src/Kaleidoscope/Cycle.cpp b/src/Kaleidoscope/Cycle.cpp index 38eb6fab..9bdc13a5 100644 --- a/src/Kaleidoscope/Cycle.cpp +++ b/src/Kaleidoscope/Cycle.cpp @@ -35,7 +35,7 @@ Cycle::Cycle(void) { } void Cycle::begin(void) { - event_handler_hook_use(eventHandlerHook); + Kaleidoscope.useEventHandlerHook(eventHandlerHook); } void Cycle::replace(Key key) {