mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-18 21:55:34 +00:00
fixed led not blinking
on first run the led would not blink, due to elif instead of if
This commit is contained in:
parent
9a7303b5d4
commit
7af1725665
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ void ledBlink(int ms)
|
|||
timer = timerBegin(0, 80, true); // timer 0, prescalar: 80, UP counting
|
||||
timerAttachInterrupt(timer, &onTimer, true); // Attach interrupt
|
||||
}
|
||||
else if (ms == 0)
|
||||
if (ms == 0)
|
||||
{
|
||||
timerAlarmDisable(timer);
|
||||
analogWrite(PIN_LED, brightness_led);
|
||||
|
|
Loading…
Add table
Reference in a new issue