From 0a5fcf91e46895519cea1952b2ce7bb6ce584c56 Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 7 Nov 2008 11:05:06 +0000 Subject: [PATCH] Merged from external project: ********** r22593 | batt | 2008-11-07 12:02:41 +0100 (ven, 07 nov 2008) | 1 line Fix file search. ********** git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1907 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/fs/battfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/fs/battfs.c b/bertos/fs/battfs.c index a10ef85f..2410f42d 100644 --- a/bertos/fs/battfs.c +++ b/bertos/fs/battfs.c @@ -875,7 +875,7 @@ static bool findFile(BattFsSuper *disk, inode_t inode, pgcnt_t *last) else if (hdr.fcs == fcs && hdr.inode < inode) first = page + 1; else - *last = page + 1; + *last = page; } LOG_INFO("Not found: last %d\n", *last); return false; -- 2.25.1