From da07b3f330f875510e050db34ac26a3d805f07dc Mon Sep 17 00:00:00 2001 From: byloveletter Date: Mon, 7 Aug 2017 11:21:25 +0900 Subject: [PATCH] GUI V0.3.14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - FRAM 초기화 문제 발생 수정 --- app/gui/oven_control/define.h | 2 +- app/gui/oven_control/servicedata.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/gui/oven_control/define.h b/app/gui/oven_control/define.h index 8803414..19641f6 100644 --- a/app/gui/oven_control/define.h +++ b/app/gui/oven_control/define.h @@ -5,7 +5,7 @@ #define MAJOR_VER 0 #define MINOR_VER 3 -#define HOTFIX_VER 13 +#define HOTFIX_VER 14 namespace Define { diff --git a/app/gui/oven_control/servicedata.cpp b/app/gui/oven_control/servicedata.cpp index b907795..7d427a2 100644 --- a/app/gui/oven_control/servicedata.cpp +++ b/app/gui/oven_control/servicedata.cpp @@ -79,7 +79,7 @@ bool ServiceData::loadServiceData(void){ if(fd>0){ memset(buffs,0x00,FRAM_SIZE); read(fd,buffs,FRAM_SIZE); - if(buffs[sizeof(error_log) + sizeof(use_statics_log) + sizeof(sensor_statics_log) + sizeof(qint64) + sizeof(int)] != 0x9C){ + if(buffs[sizeof(error_log) + sizeof(use_statics_log) + sizeof(sensor_statics_log)] != 0x9C){ qDebug() << "service data read incorrected!"; close(fd); return saveServiceData(); -- 2.1.4