From 76120d4607b8e8056c0b7b90075cc7237486a7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Mon, 27 Jan 2025 14:47:01 +0100 Subject: [PATCH] fsMount fix --- src/patrix/core/filesystem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/patrix/core/filesystem.cpp b/src/patrix/core/filesystem.cpp index b34987d..bb0d4f7 100644 --- a/src/patrix/core/filesystem.cpp +++ b/src/patrix/core/filesystem.cpp @@ -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(round(100.0 * LittleFS.usedBytes() / LittleFS.totalBytes())), LittleFS.usedBytes()); } else {