AP_Logger: correctly read file header for block logger

This commit is contained in:
Andy Piper 2024-08-12 13:07:35 +01:00 committed by Andrew Tridgell
parent 98e9364d8a
commit e95c743e5c
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ uint16_t AP_Logger_Block::ReadHeaders()
// we are at the start of a file, read the file header
if (df_FilePage == 1) {
struct FileHeader fh;
BlockRead(0, &fh, sizeof(fh));
BlockRead(sizeof(ph), &fh, sizeof(fh));
df_FileTime = fh.utc_secs;
df_Read_BufferIdx += sizeof(fh);
}