mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-05 20:16:04 +08:00
mount FS after format - to avoid to restart board
This commit is contained in:
parent
eb632b70c0
commit
7a7ac8f20b
@ -70,7 +70,11 @@ const char * ESP_FileSystem::FilesystemName()
|
||||
|
||||
bool ESP_FileSystem::format()
|
||||
{
|
||||
return FFat.format();
|
||||
bool res = FFat.format();
|
||||
if (res){
|
||||
res = begin();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
ESP_File ESP_FileSystem::open(const char* path, uint8_t mode)
|
||||
|
@ -70,7 +70,11 @@ const char * ESP_FileSystem::FilesystemName()
|
||||
|
||||
bool ESP_FileSystem::format()
|
||||
{
|
||||
return LITTLEFS.format();
|
||||
bool res = LITTLEFS.format();
|
||||
if (res){
|
||||
res = begin();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
ESP_File ESP_FileSystem::open(const char* path, uint8_t mode)
|
||||
|
@ -74,7 +74,11 @@ const char * ESP_FileSystem::FilesystemName()
|
||||
|
||||
bool ESP_FileSystem::format()
|
||||
{
|
||||
return LittleFS.format();
|
||||
bool res = LittleFS.format();
|
||||
if (res){
|
||||
res = begin();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
ESP_File ESP_FileSystem::open(const char* path, uint8_t mode)
|
||||
|
@ -68,7 +68,11 @@ const char * ESP_FileSystem::FilesystemName()
|
||||
|
||||
bool ESP_FileSystem::format()
|
||||
{
|
||||
return SPIFFS.format();
|
||||
bool res = SPIFFS.format();
|
||||
if (res){
|
||||
res = begin();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
ESP_File ESP_FileSystem::open(const char* path, uint8_t mode)
|
||||
|
@ -72,7 +72,11 @@ const char * ESP_FileSystem::FilesystemName()
|
||||
|
||||
bool ESP_FileSystem::format()
|
||||
{
|
||||
return SPIFFS.format();
|
||||
bool res = SPIFFS.format();
|
||||
if (res){
|
||||
res = begin();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
ESP_File ESP_FileSystem::open(const char* path, uint8_t mode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user