Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LittleFS is not safe from interruptions #21

Open
bradanlane opened this issue Aug 5, 2023 · 0 comments
Open

LittleFS is not safe from interruptions #21

bradanlane opened this issue Aug 5, 2023 · 0 comments
Assignees

Comments

@bradanlane
Copy link

If the LittleFS operations are interrupted- for example by the LEDs processing thread - the file system will become corrupted.

One solution is to ...

  1. set the halt flag and then wait some number of milliseconds to insure the LEDs processing thread has finished and looped around again
  2. perform the necessary operations with LittleFS
  3. restore the halt flag to allow LEDs processing to continue
@connornishijima connornishijima self-assigned this Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants