mirror of
https://github.com/wled/WLED.git
synced 2025-04-19 12:27:17 +00:00
Fix for #3593
This commit is contained in:
parent
9e57ef074d
commit
42dba3170d
@ -534,10 +534,10 @@ void MultiRelay::setup() {
|
||||
* loop() is called continuously. Here you can check for events, read sensors, etc.
|
||||
*/
|
||||
void MultiRelay::loop() {
|
||||
yield();
|
||||
if (!enabled || strip.isUpdating()) return;
|
||||
|
||||
static unsigned long lastUpdate = 0;
|
||||
yield();
|
||||
if (!enabled || (strip.isUpdating() && millis() - lastUpdate < 100)) return;
|
||||
|
||||
if (millis() - lastUpdate < 100) return; // update only 10 times/s
|
||||
lastUpdate = millis();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user