diff --git a/src/fdb_tsdb.c b/src/fdb_tsdb.c index d019476..aa4905d 100644 --- a/src/fdb_tsdb.c +++ b/src/fdb_tsdb.c @@ -238,7 +238,7 @@ static fdb_err_t read_sector_info(fdb_tsdb_t db, uint32_t addr, tsdb_sec_info_t tsl.addr.index = sector->empty_idx; while (read_tsl(db, &tsl) == FDB_NO_ERR) { - if (tsl.status == FDB_TSL_UNUSED) { + if (tsl.status == FDB_TSL_UNUSED || tsl.status == FDB_TSL_PRE_WRITE) { break; } sector->end_time = tsl.time;