Skip to content

Commit

Permalink
Merge pull request #14 from Yveaux/main
Browse files Browse the repository at this point in the history
Zero out lfs_config at start
  • Loading branch information
aentinger authored Oct 2, 2023
2 parents c8d485b + 74ea2c6 commit 55bcde0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/107-Arduino-littlefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class FilesystemConfig
lfs_size_t const cache_size,
lfs_size_t const lookahead_size)
{
memset(&_cfg, 0, sizeof(_cfg));

_cfg.read = read_func;
_cfg.prog = prog_func;
_cfg.erase = erase_func;
Expand Down

0 comments on commit 55bcde0

Please sign in to comment.