mirror of
https://github.com/wled/WLED.git
synced 2025-07-24 11:16:37 +00:00
added a delay after switching relay (#4474)
- helps to stabilize power on the LEDs before sending data
This commit is contained in:
parent
709aeff9ea
commit
bb0c0af189
@ -375,6 +375,7 @@ void handleIO()
|
||||
if (rlyPin>=0) {
|
||||
pinMode(rlyPin, rlyOpenDrain ? OUTPUT_OPEN_DRAIN : OUTPUT);
|
||||
digitalWrite(rlyPin, rlyMde);
|
||||
delay(50); // wait for relay to switch and power to stabilize
|
||||
}
|
||||
offMode = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user