Delay when run on indicator
This commit is contained in:
parent
68f66e1f2a
commit
b6e60b8fba
|
@ -102,6 +102,7 @@ void loop() {
|
||||||
|
|
||||||
// Only start the attack if run-on-indicator is disabled, or indicator actually changed
|
// Only start the attack if run-on-indicator is disabled, or indicator actually changed
|
||||||
if(preferences::getRunOnIndicator() && hid::indicatorChanged()) {
|
if(preferences::getRunOnIndicator() && hid::indicatorChanged()) {
|
||||||
|
delay(100);
|
||||||
attack::start(); // Run script
|
attack::start(); // Run script
|
||||||
led::setColor(preferences::getIdleColor()); // Set LED to green
|
led::setColor(preferences::getIdleColor()); // Set LED to green
|
||||||
} else if (selector::changed()) {
|
} else if (selector::changed()) {
|
||||||
|
|
Loading…
Reference in New Issue