Commit d5cfcab0fa1f0d6119142fb4e92f8abf26f7bb76

Authored by 고영탁
1 parent 27e821e2e8
Exists in master

스팀 과열 에러 발생시 ssv 밸브 Opne 관련 작업 디버깅

Showing 1 changed file with 7 additions and 11 deletions   Show diff stats
app/gui/oven_control/udphandler.cpp
@@ -44,18 +44,14 @@ bool UdpHandler::init() @@ -44,18 +44,14 @@ bool UdpHandler::init()
44 void UdpHandler::set_steam_high_sv_onoff(bool onoff) 44 void UdpHandler::set_steam_high_sv_onoff(bool onoff)
45 { 45 {
46 if(onoff){ 46 if(onoff){
47 - if(!m_steamhighctr_enabled){  
48 - sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_ON);  
49 - sendCommand(CMD_ONOFF, TG_SSV, SWITCH_ON);  
50 - m_steamhighctr_enabled = true;  
51 - } 47 + sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_ON);
  48 + sendCommand(CMD_ONOFF, TG_SSV, SWITCH_ON);
  49 + m_steamhighctr_enabled = true;
52 } 50 }
53 else{ 51 else{
54 - if(m_steamhighctr_enabled){  
55 - sendCommand(CMD_ONOFF, TG_SSV, SWITCH_OFF);  
56 - sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF);  
57 - m_steamhighctr_enabled = false;  
58 - } 52 + sendCommand(CMD_ONOFF, TG_SSV, SWITCH_OFF);
  53 + sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF);
  54 + m_steamhighctr_enabled = false;
59 } 55 }
60 } 56 }
61 57
@@ -140,7 +136,7 @@ void UdpHandler::turnOff(int target) @@ -140,7 +136,7 @@ void UdpHandler::turnOff(int target)
140 136
141 void UdpHandler::set(int target, int value) 137 void UdpHandler::set(int target, int value)
142 { 138 {
143 - if(m_steamhighctr_enabled){ 139 + if(m_steamhighctr_enabled && target != TG_ERROR_CLEAR){
144 sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF); 140 sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF);
145 m_steamhighctr_enabled = false; 141 m_steamhighctr_enabled = false;
146 } 142 }