mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
wioe5: integrate sensor in sensor mgr
This commit is contained in:
parent
c8877b3bc7
commit
4c6f146b8b
3 changed files with 11 additions and 9 deletions
|
|
@ -126,11 +126,14 @@ InternalFileSystem::InternalFileSystem(void)
|
|||
|
||||
bool InternalFileSystem::begin(void)
|
||||
{
|
||||
volatile bool format_fs;
|
||||
#ifdef FORMAT_FS
|
||||
this->format();
|
||||
format_fs = true;
|
||||
#else
|
||||
format_fs = false; // you can always use debugger to force formatting ;)
|
||||
#endif
|
||||
// failed to mount, erase all sector then format and mount again
|
||||
if ( !Adafruit_LittleFS::begin() )
|
||||
if ( format_fs || !Adafruit_LittleFS::begin() )
|
||||
{
|
||||
// lfs format
|
||||
this->format();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue