quickfix for sporadic "relay does not turn on" issues
see discussion in https://github.com/wled/WLED/issues/5312
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user