mirror of https://github.com/ArduPilot/ardupilot
AP_Logger: correctly read file header for block logger
This commit is contained in:
parent
3194fa1385
commit
edbe339f48
|
@ -200,7 +200,7 @@ uint16_t AP_Logger_Block::ReadHeaders()
|
||||||
// we are at the start of a file, read the file header
|
// we are at the start of a file, read the file header
|
||||||
if (df_FilePage == 1) {
|
if (df_FilePage == 1) {
|
||||||
struct FileHeader fh;
|
struct FileHeader fh;
|
||||||
BlockRead(0, &fh, sizeof(fh));
|
BlockRead(sizeof(ph), &fh, sizeof(fh));
|
||||||
df_FileTime = fh.utc_secs;
|
df_FileTime = fh.utc_secs;
|
||||||
df_Read_BufferIdx += sizeof(fh);
|
df_Read_BufferIdx += sizeof(fh);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue