Skip to content

Commit

Permalink
【同步】代码至最新版
Browse files Browse the repository at this point in the history
Signed-off-by: armink <[email protected]>
  • Loading branch information
armink committed Dec 23, 2020
1 parent 94c6240 commit 7a14557
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions inc/fdb_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ extern "C" {
#define FDB_USING_FILE_MODE
#endif

#ifndef FDB_WRITE_GRAN
#define FDB_WRITE_GRAN 1
#endif

/* log function. default FDB_PRINT macro is printf() */
#ifndef FDB_PRINT
#define FDB_PRINT(...) printf(__VA_ARGS__)
Expand Down
4 changes: 2 additions & 2 deletions src/fdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

fdb_err_t _fdb_init_ex(fdb_db_t db, const char *name, const char *part_name, fdb_db_type type, void *user_data)
{
size_t block_size;

FDB_ASSERT(db);
FDB_ASSERT(name);
FDB_ASSERT(part_name);
Expand Down Expand Up @@ -51,6 +49,8 @@ fdb_err_t _fdb_init_ex(fdb_db_t db, const char *name, const char *part_name, fdb
#endif
} else {
#ifdef FDB_USING_FAL_MODE
size_t block_size;

/* FAL (Flash Abstraction Layer) initialization */
fal_init();
/* check the flash partition */
Expand Down

0 comments on commit 7a14557

Please sign in to comment.