From 532b1129de936aac810bf8e483e014600da6e45e Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 17 Aug 2017 12:08:47 +0200 Subject: [PATCH] Stop using deprecated interfaces As `USE_PLUGINS` and `loop_hook_use` are getting deprecated, use the newer APIs: `Kaleidoscope.use` and `Kaleidoscope.useLoopHook`. Signed-off-by: Gergely Nagy --- README.md | 2 +- examples/MagicCombo/MagicCombo.ino | 2 +- src/Kaleidoscope/MagicCombo.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f8ec6b8e..d1987766 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ void magicComboActions(uint8_t combo_index, uint32_t left_hand, uint32_t right_h void setup() { Serial.begin(9600); - USE_PLUGINS(&MagicCombo); + Kaleidoscope.use(&MagicCombo); Kaleidoscope.setup(); diff --git a/examples/MagicCombo/MagicCombo.ino b/examples/MagicCombo/MagicCombo.ino index ac581868..77e51103 100644 --- a/examples/MagicCombo/MagicCombo.ino +++ b/examples/MagicCombo/MagicCombo.ino @@ -59,7 +59,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { void setup() { Serial.begin(9600); - USE_PLUGINS(&MagicCombo); + Kaleidoscope.use(&MagicCombo); Kaleidoscope.setup(); diff --git a/src/Kaleidoscope/MagicCombo.cpp b/src/Kaleidoscope/MagicCombo.cpp index 114e7026..ef016687 100644 --- a/src/Kaleidoscope/MagicCombo.cpp +++ b/src/Kaleidoscope/MagicCombo.cpp @@ -38,7 +38,7 @@ MagicCombo::MagicCombo(void) { } void MagicCombo::begin(void) { - loop_hook_use(loopHook); + Kaleidoscope.useLoopHook(loopHook); } void MagicCombo::loopHook(bool is_post_clear) {