Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libraries/LittleFS/src/LittleFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ class LittleFSImpl : public FSImpl
}

bool begin() override {
if (_mounted) {
return true;
}
if ((_blockSize <= 0) || (_size <= 0)) {
DEBUGV("LittleFS size is <= zero");
return false;
Expand Down
2 changes: 1 addition & 1 deletion libraries/SDFS/src/SDFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class SDFSImpl : public FSImpl

bool begin() override {
if (_mounted) {
end();
return true;
}
_mounted = _fs.begin(_cfg._csPin, _cfg._spiSettings);
if (!_mounted && _cfg._autoFormat) {
Expand Down