From 675c0ac475c42b5ee86cd569f6cd77e6153f70d7 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 25 Jun 2018 21:11:17 +0200 Subject: [PATCH] Fix onSetup, to register the LED mode When using the V1 compatibility layer, in the `onSetup()` method, we need to call `LEDControl.mode_add()`, otherwise the mode does not register, and will not function. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/LED-Stalker.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Kaleidoscope/LED-Stalker.h b/src/Kaleidoscope/LED-Stalker.h index 56419c2a..f8cdc639 100644 --- a/src/Kaleidoscope/LED-Stalker.h +++ b/src/Kaleidoscope/LED-Stalker.h @@ -40,6 +40,8 @@ class StalkerEffect : public LEDMode { #if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API kaleidoscope::EventHandlerResult onSetup() { + ::LEDControl.mode_add(this); + return kaleidoscope::EventHandlerResult::OK; } #endif