From 0c8b4b6b14a46e4ad11fcc741b614042040742d9 Mon Sep 17 00:00:00 2001 From: willem Date: Sat, 27 Nov 2021 11:08:43 +0100 Subject: [PATCH] make compatible with arduino-esp v2 --- src/LITTLEFS.cpp | 2 +- src/LITTLEFS.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/LITTLEFS.cpp b/src/LITTLEFS.cpp index d14f1ee..a0a6e1e 100644 --- a/src/LITTLEFS.cpp +++ b/src/LITTLEFS.cpp @@ -41,7 +41,7 @@ LITTLEFSImpl::LITTLEFSImpl() bool LITTLEFSImpl::exists(const char* path) { - File f = open(path, "r"); + File f = open(path, "r", false); return (f == true); } diff --git a/src/LITTLEFS.h b/src/LITTLEFS.h index c76cc88..ba947c8 100644 --- a/src/LITTLEFS.h +++ b/src/LITTLEFS.h @@ -16,6 +16,9 @@ #include "FS.h" +#define LittleFS LITTLEFS + + namespace fs {