From cb7b7f1dcaca1a2456aec89e11e68d67ae700525 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Tue, 11 May 2021 23:21:57 +0200 Subject: [PATCH] Add notice if no usermod installed --- CHANGELOG.md | 5 +++++ tools/cdata.js | 4 ++++ wled00/FX.cpp | 2 +- wled00/data/settings_ui.htm | 4 +--- wled00/data/settings_um.htm | 14 +++++++------- wled00/file.cpp | 10 ++++------ wled00/html_settings.h | 6 +++--- wled00/wled.h | 2 +- wled00/xml.cpp | 12 ++++++++++-- 9 files changed, 36 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc01749..e7581648 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ### Builds after release 0.12.0 +#### Build 2105112 + +- Usermod settings page no usermods message +- Lowered min speed for Drip effect + #### Build 2105111 - Fixed various Codacy code style and logic issues diff --git a/tools/cdata.js b/tools/cdata.js index de6a98f8..8a904843 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -344,6 +344,10 @@ const char PAGE_settings_dmx[] PROGMEM = R"=====()====="; str .replace(/\/gms, "") .replace(/\.*\<\/style\>/gms, "%CSS%%SCSS%") + .replace( + /function GetV().*\<\/script\>/gms, + "function GetV() {var d=document;\n" + ), } ], "wled00/html_settings.h" diff --git a/wled00/FX.cpp b/wled00/FX.cpp index dcb37286..725f6b1d 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -3085,7 +3085,7 @@ uint16_t WS2812FX::mode_drip(void) numDrops = 1 + (SEGMENT.intensity >> 6); - float gravity = -0.001 - (SEGMENT.speed/50000.0); + float gravity = -0.0005 - (SEGMENT.speed/50000.0); gravity *= SEGLEN; int sourcedrop = 12; diff --git a/wled00/data/settings_ui.htm b/wled00/data/settings_ui.htm index a5fae3c6..242c1e9f 100644 --- a/wled00/data/settings_ui.htm +++ b/wled00/data/settings_ui.htm @@ -182,9 +182,7 @@ } } - function GetV() - { - } + function GetV(){var d=document;}