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

make esp_littlefs_info thread-safe, and a few corrections from upstream #54

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

softhack007
Copy link

@softhack007 softhack007 commented Jul 7, 2022

Hi,

This is a patch roll-up that we use in our project WLED - actually we cannot use newer IDF versions, because there are annoying bugs in the I2S and ADC/DAC drivers. So we still use your library.

We had problems with corrupted file systems. To overcome these problems, we've merged a few things in that seemed helpful.
I'm submitting our version back to you, hoping that other projects might have a benefit.

Thanks for creating this great library,
Frank.

tbaust and others added 12 commits December 12, 2021 14:05
fixed multithreading problem in requesting the FS info
multithreading problem in esp_littlefs_info
back-ported two additional fixes from  joltwallet/esp_littlefs:
* do not allow esp_littlefs_info to report used_bytes > total_bytes
* fix bug where esp_littlefs_info returns ESP_OK if it fails to get partition by label
seems that 2 arguments are needed, not 3
seems that arduino-esp32 has recently added a third parameter to open()
not needed for the general case
@softhack007 softhack007 changed the title make esp_littlefs_info treadsafe, and a few corrections from upstream make esp_littlefs_info thread-safe, and a few corrections from upstream Jul 7, 2022
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

Successfully merging this pull request may close these issues.

3 participants