Commit 62ee39ee6b663a5ea5f16d2a2b2f2204a6db5fae
1 parent
0964351ba6
Exists in
fhd
스팀 과열 에러 발생 시 SSV 밸브 Opne 관련 디버깅
Showing
2 changed files
with
8 additions
and
12 deletions
Show diff stats
app/gui/oven_control/define.h
app/gui/oven_control/udphandler.cpp
... | ... | @@ -44,18 +44,14 @@ bool UdpHandler::init() |
44 | 44 | void UdpHandler::set_steam_high_sv_onoff(bool onoff) |
45 | 45 | { |
46 | 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 | 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 | 136 | |
141 | 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 | 140 | sendCommand(CMD_ONOFF, TG_MANUAL_RELAY, SWITCH_OFF); |
145 | 141 | m_steamhighctr_enabled = false; |
146 | 142 | } | ... | ... |