Remove all files but the pin_mapping.json from filesystem on factory reset

This allows to create more user defined files and get them deleted on factory reset.
This commit is contained in:
Thomas Basler
2024-01-30 22:29:12 +01:00
parent 48a722f826
commit 557c5d645e
3 changed files with 18 additions and 1 deletions

View File

@@ -11,4 +11,5 @@ public:
static int getTimezoneOffset();
static void restartDtu();
static bool checkJsonAlloc(const DynamicJsonDocument& doc, const char* function, const uint16_t line);
static void removeAllFiles();
};