From 0db96666e32abb195cd74d4d41c325b2d2f8e3ca Mon Sep 17 00:00:00 2001 From: byloveletter Date: Thu, 2 Sep 2021 20:01:38 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8D=B0=EB=AA=A8=EB=AA=A8=EB=93=9C=20?= =?UTF-8?q?=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/ovenstatics.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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("제어보드 통신에러 발생")); -- 2.1.4