From 1ef7bcfeaa2207f40d34b35aaa4a218085838c74 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 9 Oct 2018 10:06:32 +0200 Subject: [PATCH] Revert "onFocusEvent: Refresh the colormap if responding to colormap.map" This reverts commit 196588fddacddde59e677ab181176f562ab27f44. This is better done in LEDPaletteTheme. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/Colormap.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Kaleidoscope/Colormap.cpp b/src/Kaleidoscope/Colormap.cpp index 79ec906c..ab62d575 100644 --- a/src/Kaleidoscope/Colormap.cpp +++ b/src/Kaleidoscope/Colormap.cpp @@ -56,13 +56,8 @@ void ColormapEffect::refreshAt(byte row, byte col) { } EventHandlerResult ColormapEffect::onFocusEvent(const char *command) { - const char *cmd = PSTR("colormap.map"); - EventHandlerResult result = - ::LEDPaletteTheme.themeFocusEvent(command, cmd, - map_base_, max_layers_); - if (strcmp_P(command, cmd) == 0) - onActivate(); - return result; + return ::LEDPaletteTheme.themeFocusEvent(command, PSTR("colormap.map"), + map_base_, max_layers_); } }