Revert "onFocusEvent: Refresh the colormap if responding to colormap.map"

This reverts commit 196588fdda. This is better
done in LEDPaletteTheme.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/389/head
Gergely Nagy 6 years ago
parent 54db6d92a9
commit 1ef7bcfeaa

@ -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,
return ::LEDPaletteTheme.themeFocusEvent(command, PSTR("colormap.map"),
map_base_, max_layers_);
if (strcmp_P(command, cmd) == 0)
onActivate();
return result;
}
}

Loading…
Cancel
Save