File tree Expand file tree Collapse file tree 3 files changed +26
-8
lines changed Expand file tree Collapse file tree 3 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ build_flags = -D BUILD_GIT='"${sysenv.TRAVIS_TAG}"'
89
89
-DPUYA_SUPPORT =1
90
90
-DCORE_POST_2_5_0
91
91
92
+ [esp82xx_2_6_x]
93
+ build_flags = ${esp82xx_2_5_x.build_flags} -DCORE_POST_2_6_0
94
+
92
95
93
96
[core_2_3_0]
94
97
platform = https://github.com/TD-er/platform-espressif8266.git# patch/v1.5.0_Puya
@@ -120,9 +123,10 @@ build_flags = ${esp82xx_2_5_x.build_flags}
120
123
121
124
build_flags = ${esp82xx_2_5_x.build_flags}
122
125
126
+
123
127
[core_stage]
124
128
platform = https://github.com/platformio/platform-espressif8266.git# feature/stage
125
- build_flags = ${esp82xx_2_5_x .build_flags}
129
+ build_flags = ${esp82xx_2_6_x .build_flags}
126
130
127
131
128
132
[core_esp32_0_12_0]
Original file line number Diff line number Diff line change 12
12
13
13
#include < stddef.h>
14
14
15
- namespace std
15
+ namespace std
16
16
{
17
17
using ::ptrdiff_t ;
18
18
using ::size_t ;
@@ -582,10 +582,18 @@ bool showSettingsFileLayout = false;
582
582
extern " C" {
583
583
#include " spi_flash.h"
584
584
}
585
- extern " C" uint32_t _SPIFFS_start;
586
- extern " C" uint32_t _SPIFFS_end;
587
- extern " C" uint32_t _SPIFFS_page;
588
- extern " C" uint32_t _SPIFFS_block;
585
+ #ifdef CORE_POST_2_6_0
586
+ extern " C" uint32_t _FS_start;
587
+ extern " C" uint32_t _FS_end;
588
+ extern " C" uint32_t _FS_page;
589
+ extern " C" uint32_t _FS_block;
590
+ #else
591
+ extern " C" uint32_t _SPIFFS_start;
592
+ extern " C" uint32_t _SPIFFS_end;
593
+ extern " C" uint32_t _SPIFFS_page;
594
+ extern " C" uint32_t _SPIFFS_block;
595
+ #endif
596
+
589
597
#ifdef FEATURE_MDNS
590
598
#include < ESP8266mDNS.h>
591
599
#endif
Original file line number Diff line number Diff line change @@ -856,8 +856,14 @@ int SpiffsSectors()
856
856
{
857
857
checkRAM (F (" SpiffsSectors" ));
858
858
#if defined(ESP8266)
859
- uint32_t _sectorStart = ((uint32_t )&_SPIFFS_start - 0x40200000 ) / SPI_FLASH_SEC_SIZE;
860
- uint32_t _sectorEnd = ((uint32_t )&_SPIFFS_end - 0x40200000 ) / SPI_FLASH_SEC_SIZE;
859
+ #ifdef CORE_POST_2_6_0
860
+ uint32_t _sectorStart = ((uint32_t )&_FS_start - 0x40200000 ) / SPI_FLASH_SEC_SIZE;
861
+ uint32_t _sectorEnd = ((uint32_t )&_FS_end - 0x40200000 ) / SPI_FLASH_SEC_SIZE;
862
+ #else
863
+ uint32_t _sectorStart = ((uint32_t )&_SPIFFS_start - 0x40200000 ) / SPI_FLASH_SEC_SIZE;
864
+ uint32_t _sectorEnd = ((uint32_t )&_SPIFFS_end - 0x40200000 ) / SPI_FLASH_SEC_SIZE;
865
+ #endif
866
+
861
867
return _sectorEnd - _sectorStart;
862
868
#endif
863
869
#if defined(ESP32)
You can’t perform that action at this time.
0 commit comments