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 <kaleidoscope@gergo.csillger.hu>
pull/365/head
Gergely Nagy 7 years ago
parent 50b993b2f6
commit 532b1129de

@ -44,7 +44,7 @@ void magicComboActions(uint8_t combo_index, uint32_t left_hand, uint32_t right_h
void setup() { void setup() {
Serial.begin(9600); Serial.begin(9600);
USE_PLUGINS(&MagicCombo); Kaleidoscope.use(&MagicCombo);
Kaleidoscope.setup(); Kaleidoscope.setup();

@ -59,7 +59,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
void setup() { void setup() {
Serial.begin(9600); Serial.begin(9600);
USE_PLUGINS(&MagicCombo); Kaleidoscope.use(&MagicCombo);
Kaleidoscope.setup(); Kaleidoscope.setup();

@ -38,7 +38,7 @@ MagicCombo::MagicCombo(void) {
} }
void MagicCombo::begin(void) { void MagicCombo::begin(void) {
loop_hook_use(loopHook); Kaleidoscope.useLoopHook(loopHook);
} }
void MagicCombo::loopHook(bool is_post_clear) { void MagicCombo::loopHook(bool is_post_clear) {

Loading…
Cancel
Save