Skip to content

Add partition label argument to SPIFFS #4443

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

Merged
merged 7 commits into from
Nov 2, 2020
Merged

Add partition label argument to SPIFFS #4443

merged 7 commits into from
Nov 2, 2020

Conversation

thewavelength
Copy link
Contributor

SPIFFS currently assumes there is only ever one partition.

This change allows a user to pass the label argument (defaults to NULL)
to SPIFFS::begin() so a specific SPIFFS partition can be referenced.

This change does not break compatibility.

…is only ever one partition.This change allows a user to pass the label argument (defaults to NULL)to SPIFFS::begin() so a specific SPIFFS partition can be referenced.This change does not break compatibility.
@me-no-dev
Copy link
Member

why not use char * _partitionLabel; for class member instead? You can default it to NULL and strdup it if it's given. That would save the whole check for lengths and so on.

@thewavelength
Copy link
Contributor Author

Would be fine with me. I'm not that experienced with Arduino Core internals and saw it uses String just about everywhere, so I did it as well. I'll change it.

@thewavelength
Copy link
Contributor Author

Done :)

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