From ab5cf95be47b12d7ab715f6d9648211ad27cfbfe Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 29 Jul 2023 03:07:08 +0200 Subject: [PATCH] always define WLEDMM_PROTECT_SERVICE moved from MM specific platformio.ini into wled.h --- platformio.ini | 1 - wled00/wled.h | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 85654e71..7ac008a6 100644 --- a/platformio.ini +++ b/platformio.ini @@ -904,7 +904,6 @@ build_flags_S = -D UM_AUDIOREACTIVE_USE_NEW_FFT ; use latest (upstream) FFTLib, instead of older library modified by blazoncek. Slightly faster, more accurate, needs 2KB RAM extra -D USERMOD_ARTIFX ; WLEDMM usermod ; -D WLEDMM_FASTPATH ; WLEDMM experimental option. Reduces audio lag (latency), and allows for faster LED framerates. May break compatibility with previous versions. - -D WLEDMM_PROTECT_SERVICE ;; WLEDMM experimental feature to prevent crashes when effects are drawing while async_tcp tries to modify segment or strip objects. ; -D WLED_DEBUG_HEAP ;; WLEDMM enable heap debugging ; -D WLED_DISABLE_LOXONE ; -D WLED_DISABLE_ALEXA diff --git a/wled00/wled.h b/wled00/wled.h index 208f62c6..af86782c 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2307280 +#define VERSION 2307281 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG @@ -63,6 +63,9 @@ //This is generally a terrible idea, but improves boot success on boards with a 3.3v regulator + cap setup that can't provide 400mA peaks //#define WLED_DISABLE_BROWNOUT_DET +// WLED-MM MANDATORY flags +#define WLEDMM_PROTECT_SERVICE // prevents crashes when effects are drawing while asyncWebServer tries to modify segments at the same time + // Library inclusions. #include #ifdef ESP8266