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();