From 1e4f37c70d4589158cb0e172f36f5b072d0e03d4 Mon Sep 17 00:00:00 2001 From: "James N. V. Cash" Date: Mon, 13 Nov 2017 16:44:23 -0500 Subject: [PATCH] Try to name hook function better --- src/Kaleidoscope/LED-Palette-Theme.cpp | 6 ++---- src/Kaleidoscope/LED-Palette-Theme.h | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Kaleidoscope/LED-Palette-Theme.cpp b/src/Kaleidoscope/LED-Palette-Theme.cpp index bde22f7d..e612869c 100644 --- a/src/Kaleidoscope/LED-Palette-Theme.cpp +++ b/src/Kaleidoscope/LED-Palette-Theme.cpp @@ -158,10 +158,8 @@ bool LEDPaletteTheme::themeFocusHandler(const char *command, const char *expecte return true; } -bool LEDPaletteTheme::themeFocusHandlerLayerwise(const char *command, - const char *expected_command, - uint16_t theme_base, - uint8_t max_themes) { +bool LEDPaletteTheme::themeLayerFocusHandler(const char *command, const char *expected_command, + uint16_t theme_base, uint8_t max_themes) { if (strcmp_P(command, expected_command) != 0) return false; diff --git a/src/Kaleidoscope/LED-Palette-Theme.h b/src/Kaleidoscope/LED-Palette-Theme.h index 0b1e2219..27718c3e 100644 --- a/src/Kaleidoscope/LED-Palette-Theme.h +++ b/src/Kaleidoscope/LED-Palette-Theme.h @@ -43,10 +43,10 @@ class LEDPaletteTheme : public KaleidoscopePlugin { static bool themeFocusHandler(const char *command, const char *expected_command, uint16_t theme_base, uint8_t max_themes); - static bool themeFocusHandlerLayerwise(const char *command, - const char *expected_command, - uint16_t theme_base, - uint8_t max_themes); + static bool themeLayerFocusHandler(const char *command, + const char *expected_command, + uint16_t theme_base, + uint8_t max_themes); private: static uint16_t palette_base_; };