You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/04/08 23:24:59 UTC
[2/3] incubator-mynewt-core git commit: FCB;
allow fcb to operate on flash areas with only sector.
FCB; allow fcb to operate on flash areas with only sector.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/5230ebd2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/5230ebd2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/5230ebd2
Branch: refs/heads/develop
Commit: 5230ebd28f01a63569e702bde0567d4fadf3fa77
Parents: 861d74c
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Apr 8 14:22:20 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Apr 8 14:22:20 2016 -0700
----------------------------------------------------------------------
sys/fcb/src/fcb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/5230ebd2/sys/fcb/src/fcb.c
----------------------------------------------------------------------
diff --git a/sys/fcb/src/fcb.c b/sys/fcb/src/fcb.c
index 60aac43..161e829 100644
--- a/sys/fcb/src/fcb.c
+++ b/sys/fcb/src/fcb.c
@@ -34,7 +34,7 @@ fcb_init(struct fcb *fcb)
struct flash_area *oldest_fap = NULL, *newest_fap = NULL;
struct fcb_disk_area fda;
- if (!fcb->f_sectors || fcb->f_sector_cnt - fcb->f_scratch_cnt < 2) {
+ if (!fcb->f_sectors || fcb->f_sector_cnt - fcb->f_scratch_cnt < 1) {
return FCB_ERR_ARGS;
}