From 4ffeb05120a0a99c590b2f15e0f9eb87564b617c Mon Sep 17 00:00:00 2001 From: cschwinne Date: Thu, 5 Dec 2019 11:07:54 +0100 Subject: [PATCH] Fix #418 and #420 --- wled00/FX.h | 6 +++--- wled00/wled00.ino | 4 ++-- wled00/wled07_notify.ino | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wled00/FX.h b/wled00/FX.h index d6bb85a87..5a3865ae0 100644 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -552,9 +552,9 @@ class WS2812FX { uint8_t _segment_index = 0; uint8_t _segment_index_palette_last = 99; - segment _segments[MAX_NUM_SEGMENTS] = { // SRAM footprint: 21 bytes per element - // start, stop, speed, intensity, palette, mode, options, color[] - { 0, 7, DEFAULT_SPEED, 128, 0, DEFAULT_MODE, NO_OPTIONS, {DEFAULT_COLOR}} + segment _segments[MAX_NUM_SEGMENTS] = { // SRAM footprint: 24 bytes per element + // start, stop, speed, intensity, palette, mode, options, 3 unused bytes (group, spacing, opacity), color[] + { 0, 7, DEFAULT_SPEED, 128, 0, DEFAULT_MODE, NO_OPTIONS, 1, 0, 255, {DEFAULT_COLOR}} }; segment_runtime _segment_runtimes[MAX_NUM_SEGMENTS]; // SRAM footprint: 16 bytes per element }; diff --git a/wled00/wled00.ino b/wled00/wled00.ino index 00df50558..f3ce48332 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -3,7 +3,7 @@ */ /* * @title WLED project sketch - * @version 0.8.7-dev + * @version 0.9.0-dev * @author Christian Schwinne */ @@ -97,7 +97,7 @@ //version code in format yymmddb (b = daily build) -#define VERSION 1912043 +#define VERSION 1912051 char versionString[] = "0.9.0-dev"; diff --git a/wled00/wled07_notify.ino b/wled00/wled07_notify.ino index 3a72e5010..df3820acf 100644 --- a/wled00/wled07_notify.ino +++ b/wled00/wled07_notify.ino @@ -227,7 +227,7 @@ void handleNotifications() if (receiveNotificationBrightness || !someSel) bri = udpIn[2]; colorUpdated(3); - } else if (udpIn[0] > 0 && udpIn[0] < 4 && receiveDirect) //1 warls //2 drgb //3 drgbw + } else if (udpIn[0] > 0 && udpIn[0] < 5 && receiveDirect) //1 warls //2 drgb //3 drgbw { realtimeIP = notifierUdp.remoteIP(); DEBUG_PRINTLN(notifierUdp.remoteIP()); @@ -269,7 +269,7 @@ void handleNotifications() for (uint16_t i = 4; i < packetSize -2; i += 3) { if (id >= ledCount) break; - setRealtimePixel(id, udpIn[i], udpIn[i+1], udpIn[i+2], udpIn[i+3]); + setRealtimePixel(id, udpIn[i], udpIn[i+1], udpIn[i+2], 0); id++; } }