diff --git a/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.cpp b/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.cpp index 222fdfc17a..cd09cd2b6a 100644 --- a/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.cpp +++ b/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.cpp @@ -25,6 +25,7 @@ #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK #include "kaleidoscope/layers.h" // for Layer #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl +#include "kaleidoscope/plugin/FocusSerial.h" // for Focus namespace kaleidoscope { namespace plugin { @@ -37,6 +38,10 @@ LEDActiveLayerKeysEffect::TransientLEDMode::TransientLEDMode( : parent_(parent), active_color_{0, 0, 0} {} +EventHandlerResult LEDActiveLayerKeysEffect::onLedEffectQuery() { + return ::Focus.sendName(F("LEDActiveLayerKeysEffect")); +} + cRGB LEDActiveLayerKeysEffect::TransientLEDMode::getLayerColor(uint8_t layer) { cRGB color; diff --git a/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.h b/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.h index 1672ecbc8d..701515f01e 100644 --- a/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.h +++ b/plugins/Kaleidoscope-LED-ActiveLayerKeys/src/kaleidoscope/plugin/LED-ActiveLayerKeys.h @@ -43,6 +43,7 @@ class LEDActiveLayerKeysEffect : public Plugin, static void setDefaultColor(cRGB color) { default_layer_color_ = color; } + EventHandlerResult onLedEffectQuery(); // This class' instance has dynamic lifetime //