From f4061e671b926e1d0e43401bdf13523da667b8a3 Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Thu, 9 Jan 2025 22:41:45 +0100 Subject: [PATCH] added a delay after switching relay (#4474) - helps to stabilize power on the LEDs before sending data --- wled00/button.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wled00/button.cpp b/wled00/button.cpp index fc8cf0f3..fd6a8754 100644 --- a/wled00/button.cpp +++ b/wled00/button.cpp @@ -369,6 +369,7 @@ void handleIO() if (rlyPin>=0) { pinMode(rlyPin, OUTPUT); digitalWrite(rlyPin, rlyMde); + delay(50); // wait for relay to switch and power to stabilize } offMode = false; }