Commit 1743164947e1cdba3ca5a523102dd92ea4f44143

Authored by 김태훈
1 parent 8a89c201ea
Exists in master and in 2 other branches fhd, fhd-demo

프로토콜 변경 대응

- 모델 설정 추가
Showing 1 changed file with 28 additions and 0 deletions   Show diff stats
app/gui/oven_control/config.cpp
... ... @@ -189,6 +189,34 @@ void Config::applyConfig(){
189 189 UdpHandler::getInstance()->set(TG_BURNER1_2_RPM, 6000);
190 190 UdpHandler::getInstance()->set(TG_BURNER23_2_RPM, 6500);
191 191 }
  192 + UdpHandler::getInstance()->set(TG_PRODUCT_TYPE, 1);
  193 + break;
  194 + default:
  195 + UdpHandler::getInstance()->set(TG_PRODUCT_TYPE, 2);
  196 + break;
  197 + }
  198 +
  199 + switch (configlist.items.model.d32)
  200 + {
  201 + case Define::model_electric_10:
  202 + case Define::model_gas_lng_10:
  203 + case Define::model_gas_lpg_10:
  204 + UdpHandler::getInstance()->set(TG_MODEL_TYPE, 3);
  205 + break;
  206 + case Define::model_electric_20:
  207 + case Define::model_gas_lng_20:
  208 + case Define::model_gas_lpg_20:
  209 + UdpHandler::getInstance()->set(TG_MODEL_TYPE, 2);
  210 + break;
  211 + case Define::model_electric_24:
  212 + case Define::model_gas_lng_24:
  213 + case Define::model_gas_lpg_24:
  214 + UdpHandler::getInstance()->set(TG_MODEL_TYPE, 1);
  215 + break;
  216 + case Define::model_electric_40:
  217 + case Define::model_gas_lng_40:
  218 + case Define::model_gas_lpg_40:
  219 + UdpHandler::getInstance()->set(TG_MODEL_TYPE, 0);
192 220 break;
193 221 }
194 222  
... ...