From 4cde3e955d4ad8319c4a57aec1134ee7e1e20f98 Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Sat, 2 Jan 2021 12:35:32 +0900 Subject: [PATCH] fixed universe data size in forward() --- Artnet.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Artnet.h b/Artnet.h index e6c43a6..4a65a4c 100644 --- a/Artnet.h +++ b/Artnet.h @@ -433,7 +433,7 @@ namespace arx { } #ifdef FASTLED_VERSION - inline void forward(const uint32_t universe, CRGB* leds, const uint16_t num) { + inline void forward(const uint8_t universe, CRGB* leds, const uint16_t num) { subscribe(universe, [&](const uint8_t* data, const uint16_t size) { if (size < num * 3) Serial.println(F("ERROR: Too many LEDs to forward")); for (size_t pixel = 0; pixel < num; ++pixel) { @@ -444,10 +444,6 @@ namespace arx { } }); } - inline void forward(const uint8_t net, const uint8_t subnet, const uint8_t universe, CRGB* leds, const uint16_t num) { - uint32_t u = ((uint32_t)net << 8) | ((uint32_t)subnet << 4) | (uint32_t)universe; - forward(u, leds, num); - } #endif void shortname(const String& sn) { short_name = sn;