Commit 0db96666e32abb195cd74d4d41c325b2d2f8e3ca

Authored by 고영탁
1 parent c616efa79e
Exists in master

데모모드 추가

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
app/gui/oven_control/ovenstatics.cpp
... ... @@ -2,6 +2,7 @@
2 2 #include <QtDebug>
3 3 #include <QApplication>
4 4 #include <QTimer>
  5 +#include "config.h"
5 6 #include "mainwindow.h"
6 7 #include "ovencontroller.h"
7 8 #include "engineermenuwindow.h"
... ... @@ -98,6 +99,7 @@ void OvenStatistics::onDataChanged()
98 99 }
99 100 curdoorstate = state.door_state;
100 101 }
  102 + if(cfg->getConfigValue(Define::config_demo_mode).d32 !=0 ) return;
101 103  
102 104 qDebug() << "cooking state " << cookingstate << "model " << cfg->getConfigValue(Define::config_model).d32;
103 105 qDebug() << state.system_error << "and sys mask " << sys_err_mask[cookingstate][cfg->getConfigValue(Define::config_model).d32];
... ... @@ -381,6 +383,7 @@ void OvenStatistics::clearNeedErrorClear(){
381 383 }
382 384  
383 385 void OvenStatistics::oneSecTimerFired(void){
  386 + if(cfg->getConfigValue(Define::config_demo_mode).d32 !=0 ) return;
384 387 static int nOneSecCnt=1;
385 388 time_t ltime;
386 389  
... ... @@ -746,6 +749,7 @@ void OvenStatistics::onErrorPopupClosed(int erridx){
746 749  
747 750 void OvenStatistics::onCommTimeoutFired()
748 751 {
  752 + if(cfg->getConfigValue(Define::config_demo_mode).d32 !=0 ) return;
749 753 QWidget* pParent;
750 754 int erridx = MAX_ERROR_TYPE_CNT;
751 755 HACCP::error(tr("제어보드 통신에러 발생"));
... ...