Merge pull request #49 from HendrikRauh/HendrikRauh/issue48

fixed confusing syntax
This commit is contained in:
Raffael Wolf 2024-12-15 21:54:25 +01:00 committed by GitHub
commit 596e8591d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,12 +73,7 @@ void ledBlink(int ms)
timer = timerBegin(0, 80, true); // timer 0, prescalar: 80, UP counting
timerAttachInterrupt(timer, &onTimer, true); // Attach interrupt
}
if (ms == 0)
{
timerAlarmDisable(timer);
analogWrite(PIN_LED, 0);
}
else if (ms == 1)
else if (ms == 0)
{
timerAlarmDisable(timer);
analogWrite(PIN_LED, brightness_led);
@ -112,7 +107,7 @@ void setup()
}
if (digitalRead(PIN_BUTTON) == LOW)
{
ledBlink(1);
ledBlink(0);
Serial.println("Reset config");
config.begin("dmx", false);
config.clear();
@ -325,7 +320,7 @@ void setup()
server.begin();
Serial.println("Server started!");
ledBlink(1);
ledBlink(0);
}
void loop()