Skip to content

Commit

Permalink
[WiFi] Fix ESP8266 instability compiler optimization flag -O2
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-er committed Jul 18, 2023
1 parent 58e2546 commit 392e6cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion platformio_core_defs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,12 @@ build_flags = -DNDEBUG
-include "ESPEasy_config.h"
lib_ignore = ${esp82xx_defaults.lib_ignore}


; Keep optimization flag to -O2
; See: https://github.com/platformio/platform-espressif8266/issues/288
[esp82xx_2_6_x]
build_flags = ${esp82xx_2_5_x.build_flags}
-Os
-O2
-s
-DBEARSSL_SSL_BASIC
-DCORE_POST_2_6_0
Expand Down
6 changes: 5 additions & 1 deletion platformio_esp82xx_base.ini
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,15 @@ build_flags = ${ir.build_flags}
;;; 1MB flash nodes **************************************************
; Layout for 1M flash nodes ;
; *********************************************************************

; Keep optimization flag to -O2
; See: https://github.com/platformio/platform-espressif8266/issues/288

[esp82xx_1M]
extends = esp82xx_common
build_flags = -DBUILD_NO_DEBUG
-DFEATURE_SD=0
-Os
-O2
-s
-DNO_GLOBAL_MDNS
${esp82xx_common.build_flags}
Expand Down

0 comments on commit 392e6cc

Please sign in to comment.