Vyreseni problemu s definici souboroveho systemu i pro Core 2.0.0
This commit is contained in:
parent
4cc1b656fd
commit
dd5efb3345
20
src/definefs.hpp
Normal file
20
src/definefs.hpp
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#ifndef USEDFS
|
||||
# if defined(ESP32)
|
||||
# ifdef USE_LITTLEFS
|
||||
# if ESP_IDF_VERSION_MAJOR < 4
|
||||
# include <LITTLEFS.h>
|
||||
# define USEDFS LITTLEFS
|
||||
# else
|
||||
# include <LittleFS.h>
|
||||
# define USEDFS LittleFS
|
||||
# endif
|
||||
# else
|
||||
# include <SPIFFS.h>
|
||||
# define USEDFS SPIFFS
|
||||
# endif
|
||||
# else
|
||||
# include <LittleFS.h>
|
||||
# define USEDFS LittleFS
|
||||
# endif
|
||||
#endif
|
@ -8,26 +8,7 @@
|
||||
#include <Arduino.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include <FS.h>
|
||||
// TODO: predelat na definefs.hpp, ale to pak vytvori zavislost na ESPFoundation :-(
|
||||
#ifndef USEDFS
|
||||
# if defined(ESP32)
|
||||
# ifdef USE_LITTLEFS
|
||||
# if ESP_IDF_VERSION_MAJOR < 4
|
||||
# include <LITTLEFS.h>
|
||||
# define USEDFS LITTLEFS
|
||||
# else
|
||||
# include <LittleFS.h>
|
||||
# define USEDFS LittleFS
|
||||
# endif
|
||||
# else
|
||||
# include <SPIFFS.h>
|
||||
# define USEDFS SPIFFS
|
||||
# endif
|
||||
# else
|
||||
# include <LittleFS.h>
|
||||
# define USEDFS LittleFS
|
||||
# endif
|
||||
#endif
|
||||
#include "definefs.hpp"
|
||||
|
||||
enum {
|
||||
SV_OK = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user