Merge pull request 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;
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