From 023279c702feb296cc967c0e945d5e9ac73ad527 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 23 Aug 2023 13:18:48 +0200 Subject: [PATCH] 8266: minor buildenv updates * -Wno-register not needed any more (solved in FastLED 3.6.0) * ARDUINOJSON_DEBUG added to debug_flags * use WLEDMM_PROTECT_SERVICE on 8266, too --- platformio.ini | 13 ++++++++++--- wled00/wled.h | 2 -- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/platformio.ini b/platformio.ini index eadc0a73..e157b750 100644 --- a/platformio.ini +++ b/platformio.ini @@ -129,7 +129,8 @@ platform_packages = platformio/framework-arduinoespressif8266 # FLAGS: DEBUG # # ------------------------------------------------------------------------------ -debug_flags = -D DEBUG=1 -D WLED_DEBUG -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM +debug_flags = -D DEBUG=1 -D WLED_DEBUG -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM + -DARDUINOJSON_DEBUG=1 ;; enables some debug asserts in arduinoJSON #if needed (for memleaks etc) also add; -DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h" #-DDEBUG_ESP_CORE is not working right now @@ -248,7 +249,7 @@ build_flags = -DESP8266 -DFP_IN_IROM ;-Wno-deprecated-declarations - -Wno-register ;; leaves some warnings when compiling C files: command-line option '-Wno-register' is valid for C++/ObjC++ but not for C + ;; -Wno-register ;; leaves some warnings when compiling C files: command-line option '-Wno-register' is valid for C++/ObjC++ but not for C ;-Dregister= # remove warnings in C++17 due to use of deprecated register keyword by the FastLED library ;; warning: this can be dangerous -Wno-misleading-indentation ; NONOSDK22x_190703 = 2.2.2-dev(38a443e) @@ -1282,12 +1283,17 @@ build_flags = ${common.build_flags_esp8266} -D WLED_WATCHDOG_TIMEOUT=0 -D WLED_DISABLE_ALEXA -D WLED_DISABLE_HUESYNC - ; -D WLED_DEBUG + ; -D WLED_DEBUG ${common.debug_flags} ;; un-comment for debug messages + ;; -D WLED_DISABLE_ESPNOW ;; might help in case of WiFi connectivity problems + ; -D WLED_DISABLE_LOXONE ; FLASH 1272 bytes + ; -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes + ; -D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes ewowi: disabled to stay below 100% ; -D WLED_DISABLE_2D ; -D USERMOD_AUDIOREACTIVE ; -D USERMOD_ARTIFX ; to be done ; -UWLED_USE_MY_CONFIG monitor_filters = esp8266_exception_decoder +; lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation ; RAM: [====== ] 59.3% (used 48616 bytes from 81920 bytes) ; Flash: [======== ] 77.0% (used 804236 bytes from 1044464 bytes) @@ -1309,6 +1315,7 @@ build_flags = ${common.build_flags_esp8266} -D WLED_DISABLE_LOXONE ; -D USERMOD_AUDIOREACTIVE ; -D USERMOD_ARTIFX ; to be done + ;; -D WLED_DISABLE_ESPNOW ;; might help in case of WiFi connectivity problems -D USERMOD_PIRSWITCH -D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S3 (autodetect broken?) -D USERMOD_MULTI_RELAY diff --git a/wled00/wled.h b/wled00/wled.h index f276cc22..14c0843d 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -64,9 +64,7 @@ //#define WLED_DISABLE_BROWNOUT_DET // WLED-MM MANDATORY flags -#ifdef ARDUINO_ARCH_ESP32 // this feature seems unstable on 8266 #define WLEDMM_PROTECT_SERVICE // prevents crashes when effects are drawing while asyncWebServer tries to modify segments at the same time -#endif // Library inclusions. #include