mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-23 19:21:59 +03:00
allows global object instances be switch off with defines (#2344)
This commit is contained in:
committed by
Ivan Grokhotkov
parent
bd01e44c76
commit
18297458be
@ -139,6 +139,8 @@ using fs::SeekEnd;
|
||||
using fs::FSInfo;
|
||||
#endif //FS_NO_GLOBALS
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SPIFFS)
|
||||
extern fs::FS SPIFFS;
|
||||
#endif
|
||||
|
||||
#endif //FS_H
|
||||
|
@ -124,11 +124,13 @@ extern "C" uint32_t _SPIFFS_block;
|
||||
#define SPIFFS_MAX_OPEN_FILES 5
|
||||
#endif
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SPIFFS)
|
||||
FS SPIFFS = FS(FSImplPtr(new SPIFFSImpl(
|
||||
SPIFFS_PHYS_ADDR,
|
||||
SPIFFS_PHYS_SIZE,
|
||||
SPIFFS_PHYS_PAGE,
|
||||
SPIFFS_PHYS_BLOCK,
|
||||
SPIFFS_MAX_OPEN_FILES)));
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user