From 30cee093a2e7814865eef74aea13f905c2e84844 Mon Sep 17 00:00:00 2001 From: Cyril Danilevski <cyril.danilevski@xfel.eu> Date: Wed, 26 Feb 2025 14:30:23 +0100 Subject: [PATCH] Handle interlocked channels when setting channel state --- mpod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpod.cpp b/mpod.cpp index 8a4ba32..d46fd3f 100644 --- a/mpod.cpp +++ b/mpod.cpp @@ -263,7 +263,7 @@ void setChannelStateAndWait(const IPAddress *ipAddr, const uint16_t channel, con loopCount += 1; ramping = (mpod.isRampingUp() || mpod.isRampingDown()); if (!ramping) { - if (mpod.isOn() == (bool)output) { + if ((mpod.isOn() == (bool)output || mpod.isInterlocked())) { settingChannelState = false; } else if (loopCount >= 5) { // Resend set command -- GitLab