quickfix for sporadic "relay does not turn on" issues

see discussion in https://github.com/wled/WLED/issues/5312
This commit is contained in:
Frank Möhle
2026-01-26 13:54:32 +01:00
committed by GitHub
parent c2d755bcdf
commit d29402d64f

View File

@@ -962,6 +962,7 @@ void WLED::beginStrip()
if (rlyPin>=0) { if (rlyPin>=0) {
if (strip.isUpdating()) delay(FRAMETIME_FIXED); // WLEDMM ensure that no background led communication is happening while powering on the strip if (strip.isUpdating()) delay(FRAMETIME_FIXED); // WLEDMM ensure that no background led communication is happening while powering on the strip
digitalWrite(rlyPin, (rlyMde ? bri : !bri)); digitalWrite(rlyPin, (rlyMde ? bri : !bri));
offMode = !bri; // WLEDMM quickfix for sporadic "relay does not turn on" problems
delay(75); // wait for relay to switch and power to stabilize delay(75); // wait for relay to switch and power to stabilize
strip.show(); // update LEDs strip.show(); // update LEDs
delay(5); delay(5);