mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 15:27:17 +00:00
Add 50 mSec delay
Add 50 mSec delay between interlocked relay switch
This commit is contained in:
parent
505c4794d1
commit
1fb7eb646f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user