diff --git a/src/107-Arduino-littlefs.h b/src/107-Arduino-littlefs.h index 9d7d31a..6685d54 100644 --- a/src/107-Arduino-littlefs.h +++ b/src/107-Arduino-littlefs.h @@ -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;