From 5780bccc6a59d8ed97b29ad2d33d6cd61f406473 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 7 Oct 2017 21:27:13 +0200 Subject: [PATCH] Rename reactivate() to refreshAll() As requested by @obra, because `refreshAll()` describes behaviour better. Signed-off-by: Gergely Nagy --- src/Kaleidoscope-LEDControl.cpp | 2 +- src/Kaleidoscope-LEDControl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kaleidoscope-LEDControl.cpp b/src/Kaleidoscope-LEDControl.cpp index 42371bc7..d170b76b 100644 --- a/src/Kaleidoscope-LEDControl.cpp +++ b/src/Kaleidoscope-LEDControl.cpp @@ -39,7 +39,7 @@ LEDControl::set_mode(uint8_t mode_) { return; mode = mode_; - reactivate(); + refreshAll(); } uint8_t LEDControl::get_mode_index(void) { diff --git a/src/Kaleidoscope-LEDControl.h b/src/Kaleidoscope-LEDControl.h index a49195f8..caae5406 100644 --- a/src/Kaleidoscope-LEDControl.h +++ b/src/Kaleidoscope-LEDControl.h @@ -102,7 +102,7 @@ class LEDControl : public KaleidoscopePlugin { static void set_mode(uint8_t mode); static uint8_t get_mode_index(); static LEDMode *get_mode(); - static void reactivate() { + static void refreshAll() { set_all_leds_to({0, 0, 0}); if (modes[mode]) modes[mode]->onActivate();