From 149d7445e0a4ffa444596d07e072dd8beddd959b Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 16 Aug 2017 13:03:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=B4=ED=8C=8C=EC=9D=BC=20=EA=B2=BD?= =?UTF-8?q?=EA=B3=A0=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/config.cpp | 2 +- app/gui/oven_control/fileprocessdlg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/gui/oven_control/config.cpp b/app/gui/oven_control/config.cpp index d70b4aa..e6692f1 100644 --- a/app/gui/oven_control/config.cpp +++ b/app/gui/oven_control/config.cpp @@ -166,7 +166,7 @@ bool Config::loadConfig(){ saveConfig(); return false; } - if(buff[sizeof(config_lists)] ==0x9c){ + if((unsigned char) buff[sizeof(config_lists)] ==0x9c){ memcpy(configlist.data,buff,sizeof(config_lists)); qDebug() << "loading config file success"; } diff --git a/app/gui/oven_control/fileprocessdlg.cpp b/app/gui/oven_control/fileprocessdlg.cpp index e9cf108..e1f5781 100644 --- a/app/gui/oven_control/fileprocessdlg.cpp +++ b/app/gui/oven_control/fileprocessdlg.cpp @@ -676,7 +676,7 @@ void FileProcessDlg::configUpload(){ QTimer::singleShot(1000,this,SLOT(close())); return; } - if(buff[sizeof(config_lists)] != 0x9C){ + if((unsigned char) buff[sizeof(config_lists)] != 0x9C){ qDebug() << "SRC config.ini file check fail"; ui->ctrLbRemainTime->setText(tr("설정 업로드에 실패하였습니다.")); QTimer::singleShot(1000,this,SLOT(close())); -- 2.1.4