mirror of
https://github.com/armink/FlashDB.git
synced 2026-10-06 12:59:32 +08:00
Merge pull request #17 from EtcFly/master
Optimize code execution efficiency
This commit is contained in:
+2
-2
@@ -483,8 +483,8 @@ void fdb_tsl_iter_by_time(fdb_tsdb_t db, fdb_time_t from, fdb_time_t to, fdb_tsl
|
||||
/* copy the current using sector status */
|
||||
sector = db->cur_sec;
|
||||
}
|
||||
if ((!found_start_tsl && ((from >= sector.start_time && from <= sector.end_time)
|
||||
|| (sec_addr == oldest_addr && from <= sector.start_time))) || (found_start_tsl)) {
|
||||
if ((found_start_tsl) || (!found_start_tsl && ((from >= sector.start_time && from <= sector.end_time)
|
||||
|| (sec_addr == oldest_addr && from <= sector.start_time)))) {
|
||||
uint32_t start = sector.addr + SECTOR_HDR_DATA_SIZE, end = sector.end_idx;
|
||||
|
||||
found_start_tsl = true;
|
||||
|
||||
Reference in New Issue
Block a user