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