mirror of
https://github.com/eledio-devices/thirdparty-littlefs.git
synced 2025-11-01 00:38:29 +01:00
Generated v2 prefixes
This commit is contained in:
2
lfs2.c
2
lfs2.c
@@ -29,7 +29,7 @@ static inline void lfs2_cache_drop(lfs2_t *lfs2, lfs2_cache_t *rcache) {
|
|||||||
|
|
||||||
static inline void lfs2_cache_zero(lfs2_t *lfs2, lfs2_cache_t *pcache) {
|
static inline void lfs2_cache_zero(lfs2_t *lfs2, lfs2_cache_t *pcache) {
|
||||||
// zero to avoid information leak
|
// zero to avoid information leak
|
||||||
memset(pcache->buffer, 0xff, lfs2->cfg->prog_size);
|
memset(pcache->buffer, 0xff, lfs2->cfg->cache_size);
|
||||||
pcache->block = 0xffffffff;
|
pcache->block = 0xffffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user