added a delay after switching relay (#4474)

- helps to stabilize power on the LEDs before sending data
This commit is contained in:
Damian Schneider 2025-01-09 22:41:45 +01:00 committed by GitHub
parent 709aeff9ea
commit bb0c0af189
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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