From c4512b75d9e2b0c64179a7406131061f31d8ad1b Mon Sep 17 00:00:00 2001 From: cschwinne Date: Thu, 26 Mar 2020 01:44:38 +0100 Subject: [PATCH 1/2] Fixed live preview not displaying whole light if over 255 LEDs --- CHANGELOG.md | 30 +++++++++++++++++------------- wled00/wled00.ino | 2 +- wled00/wled19_json.ino | 4 ++-- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5caf7b51..56afa3fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,34 +2,38 @@ ### Development versions after 0.9.1 release +#### Build 2003261 + +- Fixed live preview not displaying whole light if over 255 LEDs + #### Build 2003251 -- Added Pacifica effect (tentative, doesn't yet support other colors) -- Added Atlantica palette -- Fixed ESP32 build of Espalexa +- Added Pacifica effect (tentative, doesn't yet support other colors) +- Added Atlantica palette +- Fixed ESP32 build of Espalexa #### Build 2003222 -- Fixed Alexa Whites on non-RGBW lights (bump Espalexa to 2.4.5) +- Fixed Alexa Whites on non-RGBW lights (bump Espalexa to 2.4.5) #### Build 2003221 -- Moved Cronixie driver from FX library to drawOverlay handler +- Moved Cronixie driver from FX library to drawOverlay handler #### Build 2003211 -- Added custom mapping compile define to FX_fcn.h -- Merged pull request #784 by @TravisDean: Fixed initialization bug when toggling skip first -- Added link to youtube videos by Room31 to readme +- Added custom mapping compile define to FX_fcn.h +- Merged pull request #784 by @TravisDean: Fixed initialization bug when toggling skip first +- Added link to youtube videos by Room31 to readme #### Build 2003141 -- Fixed color of main segment returned in JSON API during transition not being target color (closes #765) -- Fixed arlsLock() being called after pixels set in E1.31 (closes #772) -- Fixed HTTP API calls not having an effect if no segment selected (now applies to main segment) +- Fixed color of main segment returned in JSON API during transition not being target color (closes #765) +- Fixed arlsLock() being called after pixels set in E1.31 (closes #772) +- Fixed HTTP API calls not having an effect if no segment selected (now applies to main segment) #### Build 2003121 -- Created changelog.md - make tracking changes to code easier -- Merged pull request #766 by @pille: Fix E1.31 out-of sequence detection +- Created changelog.md - make tracking changes to code easier +- Merged pull request #766 by @pille: Fix E1.31 out-of sequence detection diff --git a/wled00/wled00.ino b/wled00/wled00.ino index a7eeb1f57..dc0fbb02b 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -118,7 +118,7 @@ #endif //version code in format yymmddb (b = daily build) -#define VERSION 2003251 +#define VERSION 2003261 char versionString[] = "0.9.1"; diff --git a/wled00/wled19_json.ino b/wled00/wled19_json.ino index df9bceadc..c0e23b4b5 100644 --- a/wled00/wled19_json.ino +++ b/wled00/wled19_json.ino @@ -387,8 +387,8 @@ void serveJson(AsyncWebServerRequest* request) void serveLiveLeds(AsyncWebServerRequest* request) { - byte used = ledCount; - byte n = (used -1) /MAX_LIVE_LEDS +1; //only serve every n'th LED if count over MAX_LIVE_LEDS + uint16_t used = ledCount; + uint16_t n = (used -1) /MAX_LIVE_LEDS +1; //only serve every n'th LED if count over MAX_LIVE_LEDS char buffer[2000] = "{\"leds\":["; olen = 9; obuf = buffer; From ef125ff1095bd0525da6ca5ba9a398d0d06971a2 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Thu, 26 Mar 2020 19:43:23 +0100 Subject: [PATCH 2/2] Fixed compilation for Analog LEDs Fixed sync settings network port fields too small --- CHANGELOG.md | 33 +++++++++++++++++++-------------- wled00/FX.h | 2 +- wled00/html_settings.h | 6 +++--- wled00/wled00.ino | 2 +- 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56afa3fff..7d3a466c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,38 +2,43 @@ ### Development versions after 0.9.1 release +#### Build 2003262 + + - Fixed compilation for Analog LEDs + - Fixed sync settings network port fields too small + #### Build 2003261 -- Fixed live preview not displaying whole light if over 255 LEDs + - Fixed live preview not displaying whole light if over 255 LEDs #### Build 2003251 -- Added Pacifica effect (tentative, doesn't yet support other colors) -- Added Atlantica palette -- Fixed ESP32 build of Espalexa + - Added Pacifica effect (tentative, doesn't yet support other colors) + - Added Atlantica palette + - Fixed ESP32 build of Espalexa #### Build 2003222 -- Fixed Alexa Whites on non-RGBW lights (bump Espalexa to 2.4.5) + - Fixed Alexa Whites on non-RGBW lights (bump Espalexa to 2.4.5) #### Build 2003221 -- Moved Cronixie driver from FX library to drawOverlay handler + - Moved Cronixie driver from FX library to drawOverlay handler #### Build 2003211 -- Added custom mapping compile define to FX_fcn.h -- Merged pull request #784 by @TravisDean: Fixed initialization bug when toggling skip first -- Added link to youtube videos by Room31 to readme + - Added custom mapping compile define to FX_fcn.h + - Merged pull request #784 by @TravisDean: Fixed initialization bug when toggling skip first + - Added link to youtube videos by Room31 to readme #### Build 2003141 -- Fixed color of main segment returned in JSON API during transition not being target color (closes #765) -- Fixed arlsLock() being called after pixels set in E1.31 (closes #772) -- Fixed HTTP API calls not having an effect if no segment selected (now applies to main segment) + - Fixed color of main segment returned in JSON API during transition not being target color (closes #765) + - Fixed arlsLock() being called after pixels set in E1.31 (closes #772) + - Fixed HTTP API calls not having an effect if no segment selected (now applies to main segment) #### Build 2003121 -- Created changelog.md - make tracking changes to code easier -- Merged pull request #766 by @pille: Fix E1.31 out-of sequence detection + - Created changelog.md - make tracking changes to code easier + - Merged pull request #766 by @pille: Fix E1.31 out-of sequence detection diff --git a/wled00/FX.h b/wled00/FX.h index b6ed7974c..a87da8e25 100644 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -631,7 +631,7 @@ class WS2812FX { #ifdef WLED_USE_ANALOG_LEDS uint32_t _analogLastShow = 0; - uint32_t _analogLastColor = 0; + RgbwColor _analogLastColor = 0; uint8_t _analogLastBri = 0; #endif diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 266016959..284d9b30f 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -3,7 +3,7 @@ */ //common CSS of settings pages -const char PAGE_settingsCss[] PROGMEM = R"=====()====="; +const char PAGE_settingsCss[] PROGMEM = R"=====()====="; //settings menu const char PAGE_settings[] PROGMEM = R"=====( @@ -273,7 +273,7 @@ Infrared remote:
IR info

WLED Broadcast

-UDP Port:
+UDP Port:
Receive Brightness, Color, and Effects
Send notifications on direct change:
Send notifications on button press:
@@ -316,7 +316,7 @@ Device Auth token:

MQTT

Enable MQTT:
Broker: -Port:
+Port:
The MQTT credentials are sent over an unsecured connection.
Never use the MQTT password for another service!

Username:
diff --git a/wled00/wled00.ino b/wled00/wled00.ino index dc0fbb02b..728c5ef66 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -118,7 +118,7 @@ #endif //version code in format yymmddb (b = daily build) -#define VERSION 2003261 +#define VERSION 2003262 char versionString[] = "0.9.1";