kopia lustrzana https://github.com/Aircoookie/WLED
added a delay after switching relay (#4474)
- helps to stabilize power on the LEDs before sending datapull/4086/head^2
rodzic
5fc2175dd4
commit
700a7076fd
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue