fix syntax error
This commit is contained in:
parent
227cf0bf05
commit
99731b0aff
1 changed files with 18 additions and 17 deletions
35
src/main.cpp
35
src/main.cpp
|
|
@ -86,23 +86,24 @@ void loop()
|
|||
}
|
||||
digitalWrite(POWER_BUTTON_PIN, LOW);
|
||||
}
|
||||
else
|
||||
else if (command == 0x03)
|
||||
{
|
||||
locateLedEnabled = value == 0x01;
|
||||
}
|
||||
else if (command == 0x04)
|
||||
{
|
||||
EEPROM.write(EEPROM_ADDRESS, value);
|
||||
resetFunc(); // reset mcu, to apply new address
|
||||
}
|
||||
else if (command == 0x05)
|
||||
{
|
||||
EEPROM.write(EEPROM_SHORT_DELAY, value);
|
||||
}
|
||||
else if (command == 0x06)
|
||||
{
|
||||
EEPROM.write(EEPROM_LONG_DELAY, value);
|
||||
}
|
||||
if (locateLedEnabled)
|
||||
digitalWrite(LOCATE_LED_PIN, millis() % (LOCATE_LED_BLINK_TIME * 2) < LOCATE_LED_BLINK_TIME);
|
||||
}
|
||||
else if (command == 0x04)
|
||||
{
|
||||
EEPROM.write(EEPROM_ADDRESS, value);
|
||||
resetFunc(); // reset mcu, to apply new address
|
||||
}
|
||||
else if (command == 0x05)
|
||||
{
|
||||
EEPROM.write(EEPROM_SHORT_DELAY, value);
|
||||
}
|
||||
else if (command == 0x06)
|
||||
{
|
||||
EEPROM.write(EEPROM_LONG_DELAY, value);
|
||||
}
|
||||
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