Turn the LED off if the modifier is inactive

Fixes #1. But the consequence is that the plugin will not play nicely with LED
modes that do not refresh.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 7 years ago
parent 28a3c82ae8
commit f3d4961578

@ -51,6 +51,8 @@ void ActiveModColorEffect::loopHook(bool is_post_clear) {
if (Keyboard.isModifierActive(k.keyCode))
LEDControl.led_set_crgb_at(r, c, highlight_color);
else
LEDControl.led_set_crgb_at(r, c, CRGB(0, 0, 0));
}
}
}

Loading…
Cancel
Save