mirror of
https://github.com/wled/WLED.git
synced 2025-07-25 11:46:34 +00:00
ArduinoFFT update
shadow variables
This commit is contained in:
parent
d126611e87
commit
3e20724058
@ -174,7 +174,7 @@ lib_deps =
|
|||||||
# SHT85
|
# SHT85
|
||||||
;robtillaart/SHT85@~0.3.3
|
;robtillaart/SHT85@~0.3.3
|
||||||
# Audioreactive usermod
|
# Audioreactive usermod
|
||||||
;kosme/arduinoFFT @ 2.0.0
|
;kosme/arduinoFFT @ 2.0.1
|
||||||
|
|
||||||
extra_scripts = ${scripts_defaults.extra_scripts}
|
extra_scripts = ${scripts_defaults.extra_scripts}
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ lib_deps =
|
|||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
# additional build flags for audioreactive
|
# additional build flags for audioreactive
|
||||||
AR_build_flags = -D USERMOD_AUDIOREACTIVE
|
AR_build_flags = -D USERMOD_AUDIOREACTIVE
|
||||||
AR_lib_deps = kosme/arduinoFFT @ 2.0.0
|
AR_lib_deps = kosme/arduinoFFT @ 2.0.1
|
||||||
|
|
||||||
[esp32_idf_V4]
|
[esp32_idf_V4]
|
||||||
;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5
|
;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5
|
||||||
@ -238,7 +238,6 @@ platform_packages =
|
|||||||
build_flags = -g
|
build_flags = -g
|
||||||
-Wshadow=compatible-local ;; emit warning in case a local variable "shadows" another local one
|
-Wshadow=compatible-local ;; emit warning in case a local variable "shadows" another local one
|
||||||
-DARDUINO_ARCH_ESP32 -DESP32
|
-DARDUINO_ARCH_ESP32 -DESP32
|
||||||
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
|
|
||||||
-D CONFIG_ASYNC_TCP_USE_WDT=0
|
-D CONFIG_ASYNC_TCP_USE_WDT=0
|
||||||
-DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
|
-DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
|
||||||
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
|
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
|
||||||
|
@ -667,7 +667,7 @@ void MultiRelay::addToJsonInfo(JsonObject &root) {
|
|||||||
for (int i=0; i<MULTI_RELAY_MAX_RELAYS; i++) {
|
for (int i=0; i<MULTI_RELAY_MAX_RELAYS; i++) {
|
||||||
if (_relay[i].pin<0 || !_relay[i].external) continue;
|
if (_relay[i].pin<0 || !_relay[i].external) continue;
|
||||||
uiDomString = F("Relay "); uiDomString += i;
|
uiDomString = F("Relay "); uiDomString += i;
|
||||||
JsonArray infoArr = user.createNestedArray(uiDomString); // timer value
|
infoArr = user.createNestedArray(uiDomString); // timer value
|
||||||
|
|
||||||
uiDomString = F("<button class=\"btn btn-xs\" onclick=\"requestJson({");
|
uiDomString = F("<button class=\"btn btn-xs\" onclick=\"requestJson({");
|
||||||
uiDomString += FPSTR(_name);
|
uiDomString += FPSTR(_name);
|
||||||
|
@ -276,8 +276,8 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId)
|
|||||||
seg.fill(BLACK);
|
seg.fill(BLACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t start = 0, stop = 0;
|
start = 0, stop = 0;
|
||||||
byte set = 0; //0 nothing set, 1 start set, 2 range set
|
set = 0; //0 nothing set, 1 start set, 2 range set
|
||||||
|
|
||||||
for (size_t i = 0; i < iarr.size(); i++) {
|
for (size_t i = 0; i < iarr.size(); i++) {
|
||||||
if(iarr[i].is<JsonInteger>()) {
|
if(iarr[i].is<JsonInteger>()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user