mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-31 06:36:33 +00:00
Add support for Arduino Stage Core
The actual Stage ESP8266 Core of Arduino (next 2.6.0) had changed the SPIFFS defines of the memory to FS due to a change in the libraries (https://github.com/esp8266/Arduino/pull/5511)
This commit is contained in:
parent
2641e8a482
commit
f981284066
@ -235,11 +235,20 @@ extern "C" {
|
||||
}
|
||||
#include "eboot_command.h"
|
||||
|
||||
extern "C" uint32_t _SPIFFS_end;
|
||||
#if defined(ARDUINO_ESP8266_RELEASE_2_3_0) || defined(ARDUINO_ESP8266_RELEASE_2_4_0) || defined(ARDUINO_ESP8266_RELEASE_2_4_1) || defined(ARDUINO_ESP8266_RELEASE_2_4_2) || defined(ARDUINO_ESP8266_RELEASE_2_5_0) || defined(ARDUINO_ESP8266_RELEASE_2_5_1) || defined(ARDUINO_ESP8266_RELEASE_2_5_2)
|
||||
|
||||
extern "C" uint32_t _SPIFFS_end;
|
||||
// From libraries/EEPROM/EEPROM.cpp EEPROMClass
|
||||
const uint32_t SPIFFS_END = ((uint32_t)&_SPIFFS_end - 0x40200000) / SPI_FLASH_SEC_SIZE;
|
||||
|
||||
#else // Core > 2.5.2 and STAGE
|
||||
|
||||
extern "C" uint32_t _FS_end;
|
||||
// From libraries/EEPROM/EEPROM.cpp EEPROMClass
|
||||
const uint32_t SPIFFS_END = ((uint32_t)&_FS_end - 0x40200000) / SPI_FLASH_SEC_SIZE;
|
||||
|
||||
#endif
|
||||
|
||||
// Version 4.2 config = eeprom area
|
||||
const uint32_t SETTINGS_LOCATION = SPIFFS_END; // No need for SPIFFS as it uses EEPROM area
|
||||
// Version 5.2 allow for more flash space
|
||||
|
Loading…
x
Reference in New Issue
Block a user