From 3a4f4c8c3431062c09067aa9eafe67341c74ec50 Mon Sep 17 00:00:00 2001 From: Ted Schundler Date: Sun, 2 Aug 2020 17:48:47 -0700 Subject: [PATCH 1/2] Fix multi-universe ArtNet output The existing code was very buggy - a 512 channel ArtNet packet sent data to 171 LEDs, not 170. Also the second ArtNet universe was off-by-one. The math was very confusing with so many branches. The reduces the amount of code and amount of branching. Tested with Resolume + my own ArtNet software + 252 LEDs for ArtNet. Tested with LedFx for e1.31 --- wled00/data/settings_sync.htm | 6 +-- wled00/e131.cpp | 75 ++++++++++++----------------------- 2 files changed, 29 insertions(+), 52 deletions(-) diff --git a/wled00/data/settings_sync.htm b/wled00/data/settings_sync.htm index 42b493fa..7c13650e 100644 --- a/wled00/data/settings_sync.htm +++ b/wled00/data/settings_sync.htm @@ -2,7 +2,7 @@ Sync Settings