Merge pull request #14 from keyboardio/f/refreshAll

Rename reactivate() to refreshAll()
pull/365/head
Jesse Vincent 7 years ago committed by GitHub
commit 45a1157855

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

@ -102,7 +102,7 @@ class LEDControl : public KaleidoscopePlugin {
static void set_mode(uint8_t mode); static void set_mode(uint8_t mode);
static uint8_t get_mode_index(); static uint8_t get_mode_index();
static LEDMode *get_mode(); static LEDMode *get_mode();
static void reactivate() { static void refreshAll() {
set_all_leds_to({0, 0, 0}); set_all_leds_to({0, 0, 0});
if (modes[mode]) if (modes[mode])
modes[mode]->onActivate(); modes[mode]->onActivate();

Loading…
Cancel
Save