From 62ee39ee6b663a5ea5f16d2a2b2f2204a6db5fae Mon Sep 17 00:00:00 2001 From: byloveletter Date: Mon, 7 Mar 2022 14:23:57 +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=20=EC=8B=9C=20SSV=20?= =?UTF-8?q?=EB=B0=B8=EB=B8=8C=20Opne=20=EA=B4=80=EB=A0=A8=20=EB=94=94?= =?UTF-8?q?=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/define.h | 2 +- app/gui/oven_control/udphandler.cpp | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/gui/oven_control/define.h b/app/gui/oven_control/define.h index 87459fc..9875827 100644 --- a/app/gui/oven_control/define.h +++ b/app/gui/oven_control/define.h @@ -5,7 +5,7 @@ #define MAJOR_VER 2 #define MINOR_VER 0 -#define HOTFIX_VER 10 +#define HOTFIX_VER 11 // 0 for normal // 1 for premium 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