From d5cfcab0fa1f0d6119142fb4e92f8abf26f7bb76 Mon Sep 17 00:00:00 2001 From: byloveletter Date: Mon, 7 Mar 2022 14:21:43 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=8C=80=20=EA=B3=BC=EC=97=B4=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EB=B0=9C=EC=83=9D=EC=8B=9C=20ssv=20?= =?UTF-8?q?=EB=B0=B8=EB=B8=8C=20Opne=20=EA=B4=80=EB=A0=A8=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=20=EB=94=94=EB=B2=84=EA=B9=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/udphandler.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/app/gui/oven_control/udphandler.cpp b/app/gui/oven_control/udphandler.cpp index 7680366..404617d 100644 --- a/app/gui/oven_control/udphandler.cpp +++ b/app/gui/oven_control/udphandler.cpp @@ -44,18 +44,14 @@ bool UdpHandler::init() void UdpHandler::set_steam_high_sv_onoff(bool onoff) { if(onoff){ - if(!m_steamhighctr_enabled){ - sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_ON); - sendCommand(CMD_ONOFF, TG_SSV, SWITCH_ON); - m_steamhighctr_enabled = true; - } + sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_ON); + sendCommand(CMD_ONOFF, TG_SSV, SWITCH_ON); + m_steamhighctr_enabled = true; } else{ - if(m_steamhighctr_enabled){ - sendCommand(CMD_ONOFF, TG_SSV, SWITCH_OFF); - sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF); - m_steamhighctr_enabled = false; - } + sendCommand(CMD_ONOFF, TG_SSV, SWITCH_OFF); + sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF); + m_steamhighctr_enabled = false; } } @@ -140,7 +136,7 @@ void UdpHandler::turnOff(int target) void UdpHandler::set(int target, int value) { - if(m_steamhighctr_enabled){ + if(m_steamhighctr_enabled && target != TG_ERROR_CLEAR){ sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF); m_steamhighctr_enabled = false; } -- 2.1.4