added a delay after switching relay (#4474)

- helps to stabilize power on the LEDs before sending data
pull/4086/head^2
Damian Schneider 2025-01-09 22:41:45 +01:00
rodzic 5fc2175dd4
commit 700a7076fd
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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;
}