From 9d521dbdb998f3481426d512037f65b510a8ee95 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Sun, 26 Sep 2021 14:20:07 +0200 Subject: [PATCH] Upravy i pro preklad ESP32 Core 2.0.0 --- src/sysvars.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/sysvars.hpp b/src/sysvars.hpp index 119371c..79d3f61 100644 --- a/src/sysvars.hpp +++ b/src/sysvars.hpp @@ -11,8 +11,13 @@ #ifndef USEDFS # if defined(ESP32) # ifdef USE_LITTLEFS -# include -# define USEDFS LITTLEFS +# if ESP_IDF_VERSION_MAJOR < 4 +# include +# define USEDFS LITTLEFS +# else +# include +# define USEDFS LittleFS +# endif # else # include # define USEDFS SPIFFS