diff --git a/CHANGELOG.md b/CHANGELOG.md index 24c6becc4..498410705 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ### WLED version 0.11.0 +#### Build 2012020 + +- UDP `parsePacket()` with sync disabled (#1390) +- Added Multi RGBW DMX mode (PR #1383) + #### Build 2012010 - Fixed compilation for analog (PWM) LEDs diff --git a/wled00/udp.cpp b/wled00/udp.cpp index 44b70ac02..2b098ac24 100644 --- a/wled00/udp.cpp +++ b/wled00/udp.cpp @@ -123,7 +123,7 @@ void handleNotifications() } //receive UDP notifications - if (!udpConnected || !(receiveNotifications || receiveDirect)) return; + if (!udpConnected) return; bool isSupp = false; uint16_t packetSize = notifierUdp.parsePacket(); @@ -155,16 +155,18 @@ void handleNotifications() return; } } + + if (!(receiveNotifications || receiveDirect)) return; //notifier and UDP realtime if (!packetSize || packetSize > UDP_IN_MAXSIZE) return; - if (!isSupp && notifierUdp.remoteIP() == Network.localIP()) return; //don't process broadcasts we send ourselves + if (!isSupp && notifierUdp.remoteIP() == Network.localIP()) return; //don't process broadcasts we send ourselves uint8_t udpIn[packetSize +1]; if (isSupp) notifier2Udp.read(udpIn, packetSize); else notifierUdp.read(udpIn, packetSize); - //wled notifier, block if realtime packets active + //wled notifier, ignore if realtime packets active if (udpIn[0] == 0 && !realtimeMode && receiveNotifications) { //ignore notification if received within a second after sending a notification ourselves @@ -223,6 +225,7 @@ void handleNotifications() colorUpdated(NOTIFIER_CALL_MODE_NOTIFICATION); return; } + if (!receiveDirect) return; //TPM2.NET diff --git a/wled00/wled.h b/wled00/wled.h index 93ca1378b..8915bbcd9 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2012010 +#define VERSION 2012020 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG