---
title: "Discussion on \"Keep those configs alive or forever regret it\" | Hashnode"
description: "Discussion on \"Keep those configs alive or forever regret it\". For today's mistake I was initializing LittleFs by defining its lsf_config struct inside my wrapper code init function.\nstatic lfs_t fileSystem;\n\nint LfsReadCallback(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size..."
url: "https://hashnode.com/posts/keep-those-configs-alive-or-forever-regret-it/65b01768fe19a0da5dcc556c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Keep those configs alive or forever regret it](https://owningmymistakes.hashnode.dev/keep-those-configs-alive-or-forever-regret-it?utm_source=hashnode&utm_medium=feed)

For today's mistake I was initializing LittleFs by defining its lsf\_config struct inside my wrapper code init function. static lfs\_t fileSystem; int LfsReadCallback(const struct lfs\_config \*c, lfs\_block\_t block, lfs\_off\_t off, void \*buffer, lfs\_size...

Jan 23, 2024 · 2 min read · owningmymistakes.hashnode.dev  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#callstack](https://hashnode.com/tag/callstack)
-   [#memory](https://hashnode.com/tag/memory)

## Written by

[Kim Lillås](https://hashnode.com/@klillas)

@klillas

  
[View profile](https://hashnode.com/@klillas)

Professional software developer with an interest in anything and everything technical

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
