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
This commit is contained in:
@@ -132,7 +132,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
|
||||
|
||||
@@ -252,7 +253,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)
|
||||
@@ -1321,12 +1322,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)
|
||||
|
||||
@@ -1348,6 +1354,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
|
||||
|
||||
@@ -66,9 +66,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 <Arduino.h>
|
||||
|
||||
Reference in New Issue
Block a user