Skip to content

Commit cf2f378

Browse files
blazonceksofthack007
authored andcommitted
Fix for wled#3593
1 parent cf20c80 commit cf2f378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usermods/multi_relay/usermod_multi_relay.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ void MultiRelay::setup() {
496496
* loop() is called continuously. Here you can check for events, read sensors, etc.
497497
*/
498498
void MultiRelay::loop() {
499+
static unsigned long lastUpdate = 0;
499500
yield();
500-
if (!enabled || strip.isUpdating()) return;
501+
if (!enabled || (strip.isUpdating() && millis() - lastUpdate < 100)) return;
501502

502-
static unsigned long lastUpdate = 0;
503503
if (millis() - lastUpdate < 100) return; // update only 10 times/s
504504
lastUpdate = millis();
505505

0 commit comments

Comments
 (0)