Merge pull request #9 from speedypotato/bugfix/minor_led_update

LEDs only update when switch change in reactive mode
This commit is contained in:
Nick G
2021-07-26 10:10:47 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
Binary file not shown.
+3 -2
View File
@@ -242,8 +242,9 @@ void update_inputs() {
sw_changed = true;
}
}
// Update LEDs if in reactive mode
if (reactive_timeout_count >= REACTIVE_TIMEOUT_MAX) leds_changed = true;
// Update LEDs if input changed while in reactive mode
if (sw_changed && reactive_timeout_count >= REACTIVE_TIMEOUT_MAX)
leds_changed = true;
}
/**