mirror of
https://github.com/armink/FlashDB.git
synced 2025-01-29 04:32:53 +08:00
[tsdb][read_sector_info]: fix read last valid tsl (#302)
Co-authored-by: wuchushun <wuchushun@kaadas.com>
This commit is contained in:
parent
60675db070
commit
8f80336b89
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user