Fix update(): remove old sysex_flash_active logic
This commit is contained in:
+2
-9
@@ -288,16 +288,9 @@ void DefaultLedStub::update() {
|
|||||||
|
|
||||||
uint32_t now = millis();
|
uint32_t now = millis();
|
||||||
|
|
||||||
// Turn off activity/SysEx flash
|
// Turn off activity flash
|
||||||
if (activity_off_time > 0 && now >= activity_off_time) {
|
if (activity_off_time > 0 && now >= activity_off_time) {
|
||||||
if (sysex_flash_active) {
|
mux_ptr->set_led_color(0, saved_r, saved_g, saved_b);
|
||||||
for (int i = 0; i < NUM_LEDS; i++) {
|
|
||||||
mux_ptr->set_led_color(i, sysex_saved_r[i], sysex_saved_g[i], sysex_saved_b[i]);
|
|
||||||
}
|
|
||||||
sysex_flash_active = false;
|
|
||||||
} else {
|
|
||||||
mux_ptr->set_led_color(0, saved_r, saved_g, saved_b);
|
|
||||||
}
|
|
||||||
mux_ptr->show();
|
mux_ptr->show();
|
||||||
activity_off_time = 0;
|
activity_off_time = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user