fsMount fix
This commit is contained in:
parent
1a75387aea
commit
76120d4607
@ -7,9 +7,10 @@
|
||||
auto fsMounted = false;
|
||||
|
||||
bool fsMount() {
|
||||
if (!fsMounted) {
|
||||
fsMounted = LittleFS.begin(true);
|
||||
if (fsMounted) {
|
||||
return true;
|
||||
}
|
||||
fsMounted = LittleFS.begin(true);
|
||||
if (fsMounted) {
|
||||
info("Filesystem mounted: %3d%% used (%d bytes)", static_cast<int>(round(100.0 * LittleFS.usedBytes() / LittleFS.totalBytes())), LittleFS.usedBytes());
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user