From 7edb356f1ae2335fe7fb8604e46694ae0e82fde9 Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Wed, 27 Apr 2016 18:54:48 +0200 Subject: [PATCH] fixed a bug in fs check --- src/spiffs_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spiffs_check.c b/src/spiffs_check.c index 8dd6665..1222dea 100644 --- a/src/spiffs_check.c +++ b/src/spiffs_check.c @@ -980,8 +980,8 @@ s32_t spiffs_object_index_consistency_check(spiffs *fs) { memset(fs->work, 0, SPIFFS_CFG_LOG_PAGE_SZ(fs)); u32_t obj_id_log_ix = 0; CHECK_CB(fs, SPIFFS_CHECK_INDEX, SPIFFS_CHECK_PROGRESS, 0, 0); - res = spiffs_obj_lu_find_entry_visitor(fs, 0, 0, 0, 0, spiffs_object_index_consistency_check_v, &obj_id_log_ix, - 0, 0, 0); + res = spiffs_obj_lu_find_entry_visitor(fs, 0, 0, 0, 0, spiffs_object_index_consistency_check_v, 0, &obj_id_log_ix, + 0, 0); if (res == SPIFFS_VIS_END) { res = SPIFFS_OK; }