avoid glitches at relay power-on

* switch on relay _after_ the current leds transmission is complete.
This commit is contained in:
Frank
2025-01-10 12:49:46 +01:00
parent c0d8e256ae
commit 6caa9d78b8
2 changed files with 7 additions and 4 deletions

View File

@@ -389,6 +389,7 @@ void handleIO()
esp32RMTInvertIdle();
#endif
if (rlyPin>=0) {
if (strip.isUpdating()) delay(FRAMETIME_FIXED); // WLEDMM avoids randomly colored pixles at power-on
pinMode(rlyPin, OUTPUT);
digitalWrite(rlyPin, !rlyMde);
}