Skip to content

Commit 1c0a36c

Browse files
committed
LittleFS: Use default implementation of ::exists().
This fixes the log spam when calling LittleFS::exists() on a non-existing file.
1 parent 074efb2 commit 1c0a36c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/LittleFS/src/LittleFS.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ class LittleFSImpl : public VFSImpl
3636
public:
3737
LittleFSImpl();
3838
virtual ~LittleFSImpl() { }
39-
virtual bool exists(const char* path);
39+
//virtual bool exists(const char* path);
4040
};
4141

4242
LittleFSImpl::LittleFSImpl()
4343
{
4444
}
45-
45+
/*
4646
bool LittleFSImpl::exists(const char* path)
4747
{
4848
File f = open(path, "r",false);
4949
return (f == true);
5050
}
51-
51+
*/
5252
LittleFSFS::LittleFSFS() : FS(FSImplPtr(new LittleFSImpl())), partitionLabel_(NULL)
5353
{
5454
}

0 commit comments

Comments
 (0)