Skip to content

Commit d29402d

Browse files
authored
quickfix for sporadic "relay does not turn on" issues
see discussion in wled#5312
1 parent c2d755b commit d29402d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wled00/wled.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ void WLED::beginStrip()
962962
if (rlyPin>=0) {
963963
if (strip.isUpdating()) delay(FRAMETIME_FIXED); // WLEDMM ensure that no background led communication is happening while powering on the strip
964964
digitalWrite(rlyPin, (rlyMde ? bri : !bri));
965+
offMode = !bri; // WLEDMM quickfix for sporadic "relay does not turn on" problems
965966
delay(75); // wait for relay to switch and power to stabilize
966967
strip.show(); // update LEDs
967968
delay(5);

0 commit comments

Comments
 (0)