diff --git a/app/gui/oven_control/ovenstatics.cpp b/app/gui/oven_control/ovenstatics.cpp index f3a12df..59e9d92 100644 --- a/app/gui/oven_control/ovenstatics.cpp +++ b/app/gui/oven_control/ovenstatics.cpp @@ -2,6 +2,7 @@ #include #include #include +#include "config.h" #include "mainwindow.h" #include "ovencontroller.h" #include "engineermenuwindow.h" @@ -98,6 +99,7 @@ void OvenStatistics::onDataChanged() } curdoorstate = state.door_state; } + if(cfg->getConfigValue(Define::config_demo_mode).d32 !=0 ) return; qDebug() << "cooking state " << cookingstate << "model " << cfg->getConfigValue(Define::config_model).d32; qDebug() << state.system_error << "and sys mask " << sys_err_mask[cookingstate][cfg->getConfigValue(Define::config_model).d32]; @@ -381,6 +383,7 @@ void OvenStatistics::clearNeedErrorClear(){ } void OvenStatistics::oneSecTimerFired(void){ + if(cfg->getConfigValue(Define::config_demo_mode).d32 !=0 ) return; static int nOneSecCnt=1; time_t ltime; @@ -746,6 +749,7 @@ void OvenStatistics::onErrorPopupClosed(int erridx){ void OvenStatistics::onCommTimeoutFired() { + if(cfg->getConfigValue(Define::config_demo_mode).d32 !=0 ) return; QWidget* pParent; int erridx = MAX_ERROR_TYPE_CNT; HACCP::error(tr("제어보드 통신에러 발생"));