From 350e20544dfb6b40c750e898ed6174664727660b Mon Sep 17 00:00:00 2001 From: tonyxforce Date: Fri, 25 Aug 2023 00:04:05 +0200 Subject: [PATCH] Fixing effect speed issues --- .vscode/extensions.json | 10 ---------- wled00/FX.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 .vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 080e70d0..00000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ], - "unwantedRecommendations": [ - "ms-vscode.cpptools-extension-pack" - ] -} diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 1e74b4c7..757e618b 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -1953,7 +1953,7 @@ uint16_t mode_jbl() { SEGENV.aux1 = 0; } - if (SEGENV.aux0 > SEGMENT.speed) { + if (SEGENV.aux0 > SEGMENT.custom1) { SEGENV.aux1 = 0; SEGENV.aux0++; } @@ -1963,9 +1963,9 @@ uint16_t mode_jbl() { uint16_t counter = 0; if (volumeSmth * 2 > (255 - SEGMENT.intensity)) { - speed = 1000; + speed = SEGMENT.speed * 50; } else { - speed = 20; + speed = SEGMENT.speed; }; SEGENV.step += speed; @@ -1992,7 +1992,7 @@ uint16_t mode_jbl() { return FRAMETIME; } // mode_jbl() -static const char _data_FX_MODE_JBL[] PROGMEM = "JBL@Color change speed,Sensivity;!,!;!;1v;c1=8,c2=48,m12=0,si=0"; +static const char _data_FX_MODE_JBL[] PROGMEM = "JBL@Effect speed,Sensivity,Color change speed;!,!;!;1v;c1=8,c2=48,m12=0,si=0"; //eight colored dots, weaving in and out of sync with each other uint16_t mode_juggle(void) {