Commit 62ee39ee6b663a5ea5f16d2a2b2f2204a6db5fae

Authored by 고영탁
1 parent 0964351ba6
Exists in fhd

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

app/gui/oven_control/define.h
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 5
6 #define MAJOR_VER 2 6 #define MAJOR_VER 2
7 #define MINOR_VER 0 7 #define MINOR_VER 0
8 -#define HOTFIX_VER 10 8 +#define HOTFIX_VER 11
9 9
10 // 0 for normal 10 // 0 for normal
11 // 1 for premium 11 // 1 for premium
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 }