SPIFFS: Update example, README.md
Separate method to initialize SPIFFS memory buffers. REDME.md for spiffs component. Simplify spiffs example.
This commit is contained in:
parent
66610c56cb
commit
924860a78f
6 changed files with 277 additions and 171 deletions
|
|
@ -18,8 +18,9 @@ static fs_time_t get_current_time()
|
|||
|
||||
void test_task(void *pvParameters)
|
||||
{
|
||||
esp_spiffs_init();
|
||||
esp_spiffs_mount();
|
||||
esp_spiffs_unmount(); // FS must be unmounted before formating
|
||||
SPIFFS_unmount(&fs); // FS must be unmounted before formating
|
||||
if (SPIFFS_format(&fs) == SPIFFS_OK) {
|
||||
printf("Format complete\n");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue