turn off locate LED, when disabling
This commit is contained in:
parent
99731b0aff
commit
3970bd5890
1 changed files with 3 additions and 1 deletions
|
|
@ -89,6 +89,7 @@ void loop()
|
|||
else if (command == 0x03)
|
||||
{
|
||||
locateLedEnabled = value == 0x01;
|
||||
digitlaWrite(LOCATE_LED_PIN, LOW);
|
||||
}
|
||||
else if (command == 0x04)
|
||||
{
|
||||
|
|
@ -103,7 +104,8 @@ void loop()
|
|||
{
|
||||
EEPROM.write(EEPROM_LONG_DELAY, value);
|
||||
}
|
||||
if (locateLedEnabled)
|
||||
if (locateLedEnabled) {
|
||||
digitalWrite(LOCATE_LED_PIN, millis() % (LOCATE_LED_BLINK_TIME * 2) < LOCATE_LED_BLINK_TIME);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue