Commit 1f78015ebdddc056a3d7cb15b50fd45f142e6ba2
1 parent
0a9e48d8b6
Exists in
master
and in
2 other branches
하프 에너지 대응 추가
Showing
1 changed file
with
24 additions
and
0 deletions
Show diff stats
app/gui/oven_control/config.cpp
... | ... | @@ -20,6 +20,7 @@ |
20 | 20 | #include "configdutywashdlg.h" |
21 | 21 | #include "fileprocessor.h" |
22 | 22 | #include "backlight.h" |
23 | +#include "udphandler.h" | |
23 | 24 | |
24 | 25 | using namespace Define; |
25 | 26 | |
... | ... | @@ -157,6 +158,29 @@ bool Config::loadConfig(){ |
157 | 158 | void Config::applyConfig(){ |
158 | 159 | watcher.setDelay(configlist.items.set_auto_darkness.d32); |
159 | 160 | Backlight::set(configlist.items.backlight.d32); |
161 | + | |
162 | + switch (configlist.items.model.d32) | |
163 | + { | |
164 | + case Define::model_gas_lng_10: | |
165 | + case Define::model_gas_lng_20: | |
166 | + case Define::model_gas_lng_24: | |
167 | + case Define::model_gas_lng_40: | |
168 | + case Define::model_gas_lpg_10: | |
169 | + case Define::model_gas_lpg_20: | |
170 | + case Define::model_gas_lpg_24: | |
171 | + case Define::model_gas_lpg_40: | |
172 | + if (configlist.items.set_half_energy.d32) | |
173 | + { | |
174 | + UdpHandler::getInstance()->set(TG_BURNER1_2_RPM, 4500); | |
175 | + UdpHandler::getInstance()->set(TG_BURNER23_2_RPM, 4500); | |
176 | + } | |
177 | + else | |
178 | + { | |
179 | + UdpHandler::getInstance()->set(TG_BURNER1_2_RPM, 6000); | |
180 | + UdpHandler::getInstance()->set(TG_BURNER23_2_RPM, 6500); | |
181 | + } | |
182 | + break; | |
183 | + } | |
160 | 184 | } |
161 | 185 | |
162 | 186 | Define::config_item Config::getConfigValue(Define::ConfigType idx){ | ... | ... |