Skip to content

Commit f4061e6

Browse files
DedeHaisofthack007
authored andcommitted
added a delay after switching relay (wled#4474)
- helps to stabilize power on the LEDs before sending data
1 parent 79c26db commit f4061e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wled00/button.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ void handleIO()
369369
if (rlyPin>=0) {
370370
pinMode(rlyPin, OUTPUT);
371371
digitalWrite(rlyPin, rlyMde);
372+
delay(50); // wait for relay to switch and power to stabilize
372373
}
373374
offMode = false;
374375
}

0 commit comments

Comments
 (0)