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