From 1fb7eb646fba2a95aecfc1cc65a9dc705d89731e Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 25 Jan 2019 18:30:10 +0100 Subject: [PATCH] Add 50 mSec delay Add 50 mSec delay between interlocked relay switch --- sonoff/sonoff.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index ac82f968d..bec71038d 100755 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -1470,6 +1470,7 @@ void ExecuteCommandPower(byte device, byte state, int source) power_t imask = 1 << j; if ((Settings.interlock[i] & imask) && (power & imask) && (mask != imask)) { ExecuteCommandPower(j +1, POWER_OFF, SRC_IGNORE); + delay(50); // Add some delay to make sure never have more than one relay on } } break; // An interlocked relay is only present in one group so quit