From 1f78015ebdddc056a3d7cb15b50fd45f142e6ba2 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 29 May 2017 14:34:36 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=98=ED=94=84=20=EC=97=90=EB=84=88?= =?UTF-8?q?=EC=A7=80=20=EB=8C=80=EC=9D=91=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/config.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/app/gui/oven_control/config.cpp b/app/gui/oven_control/config.cpp index 00ade21..2fc9bbb 100644 --- a/app/gui/oven_control/config.cpp +++ b/app/gui/oven_control/config.cpp @@ -20,6 +20,7 @@ #include "configdutywashdlg.h" #include "fileprocessor.h" #include "backlight.h" +#include "udphandler.h" using namespace Define; @@ -157,6 +158,29 @@ bool Config::loadConfig(){ void Config::applyConfig(){ watcher.setDelay(configlist.items.set_auto_darkness.d32); Backlight::set(configlist.items.backlight.d32); + + switch (configlist.items.model.d32) + { + case Define::model_gas_lng_10: + case Define::model_gas_lng_20: + case Define::model_gas_lng_24: + case Define::model_gas_lng_40: + case Define::model_gas_lpg_10: + case Define::model_gas_lpg_20: + case Define::model_gas_lpg_24: + case Define::model_gas_lpg_40: + if (configlist.items.set_half_energy.d32) + { + UdpHandler::getInstance()->set(TG_BURNER1_2_RPM, 4500); + UdpHandler::getInstance()->set(TG_BURNER23_2_RPM, 4500); + } + else + { + UdpHandler::getInstance()->set(TG_BURNER1_2_RPM, 6000); + UdpHandler::getInstance()->set(TG_BURNER23_2_RPM, 6500); + } + break; + } } Define::config_item Config::getConfigValue(Define::ConfigType idx){ -- 2.1.4