[fdb] fix error code.

This commit is contained in:
armink 2022-01-25 20:18:26 +08:00
parent 91072137d7
commit fd062f7053
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ fdb_err_t _fdb_file_write(fdb_db_t db, uint32_t addr, const void *buf, size_t si
fsync(fd);
}
} else {
result = FDB_READ_ERR;
result = FDB_WRITE_ERR;
}
return result;