Skip to content

Commit 7296f62

Browse files
committed
[Shelly1] Test build using 2M512 flash layout to allow OTA
Just merged new flash layout: esp8266/Arduino#5103 So as a test, using the staged version.
1 parent 9c706b7 commit 7296f62

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

platformio.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ build_flags = ${common.build_flags} -Wl,-Tesp8266.flash.2m.ld
180180
board_build.flash_mode = dio
181181
board_build.f_cpu = ${common.board_build.f_cpu}
182182
build_unflags = ${common.build_unflags}
183-
build_flags = ${common.build_flags} -Wl,-Tesp8266.flash.2m.ld
183+
build_flags = ${common.build_flags} -Wl,-Tesp8266.flash.2m512.ld
184+
platform = ${core_staged.platform}
185+
184186

185187
[esp8266_4M]
186188
board_build.flash_mode = dio
@@ -651,7 +653,7 @@ build_flags = ${Sonoff.build_flags} -D PLUGIN_SET_SONOFF_POW_R2
651653
upload_speed = ${common.upload_speed}
652654
monitor_speed = ${common.monitor_speed}
653655
framework = ${common.framework}
654-
platform = ${common.platform}
656+
platform = ${esp8266_2M.platform}
655657
lib_deps = ${common.lib_deps}
656658
lib_ignore = ${common.lib_ignore}
657659
lib_ldf_mode = ${common.lib_ldf_mode}

src/WebServer.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5480,10 +5480,10 @@ void handle_sysvars() {
54805480
addTableSeparator(F("System"), 3, 3);
54815481
addSysVar_html(F("%uptime%"));
54825482
addSysVar_html(F("%unixtime%"));
5483-
addSysVar_html(F("%sunset%"));
5484-
addSysVar_html(F("%sunset-1h%"));
54855483
addSysVar_html(F("%sunrise%"));
54865484
addSysVar_html(F("%sunrise+10m%"));
5485+
addSysVar_html(F("%sunset%"));
5486+
addSysVar_html(F("%sunset-1h%"));
54875487

54885488
addTableSeparator(F("Special Characters"), 3, 2);
54895489
addTableSeparator(F("Degree"), 3, 3);

0 commit comments

Comments
 (0)