Rename reactivate() to refreshAll()

As requested by @obra, because `refreshAll()` describes behaviour better.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/365/head
Gergely Nagy 7 years ago
parent 0fc47c3818
commit 5780bccc6a

@ -39,7 +39,7 @@ LEDControl::set_mode(uint8_t mode_) {
return;
mode = mode_;
reactivate();
refreshAll();
}
uint8_t LEDControl::get_mode_index(void) {

@ -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();

Loading…
Cancel
Save