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; }