fix syntax error

This commit is contained in:
Jonas Leder 2023-01-25 08:01:28 +01:00
commit 99731b0aff
No known key found for this signature in database
GPG key ID: CC3C488E27DFF5CA

View file

@ -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);
}
}