Commit da07b3f330f875510e050db34ac26a3d805f07dc
1 parent
cc835a688b
Exists in
master
and in
2 other branches
GUI V0.3.14
- FRAM 초기화 문제 발생 수정
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/gui/oven_control/define.h
app/gui/oven_control/servicedata.cpp
... | ... | @@ -79,7 +79,7 @@ bool ServiceData::loadServiceData(void){ |
79 | 79 | if(fd>0){ |
80 | 80 | memset(buffs,0x00,FRAM_SIZE); |
81 | 81 | read(fd,buffs,FRAM_SIZE); |
82 | - if(buffs[sizeof(error_log) + sizeof(use_statics_log) + sizeof(sensor_statics_log) + sizeof(qint64) + sizeof(int)] != 0x9C){ | |
82 | + if(buffs[sizeof(error_log) + sizeof(use_statics_log) + sizeof(sensor_statics_log)] != 0x9C){ | |
83 | 83 | qDebug() << "service data read incorrected!"; |
84 | 84 | close(fd); |
85 | 85 | return saveServiceData(); | ... | ... |