From 1adbac3544c9241aa4ee6ef358f31fed51df1fe1 Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Sun, 14 Jul 2024 02:14:46 +0900 Subject: [PATCH] fix: compile error with FastLED --- Artnet/Receiver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Artnet/Receiver.h b/Artnet/Receiver.h index 6a35d96..8d95fa6 100644 --- a/Artnet/Receiver.h +++ b/Artnet/Receiver.h @@ -244,7 +244,7 @@ class Receiver_ } void forwardArtDmxDataToFastLED(uint16_t universe, CRGB* leds, uint16_t num) { - this->subscribeArtDmxUniverse(universe, [leds, num](const uint8_t* data, const uint16_t size, const ArtDmxMetadata &, const RemoteInfo &) { + this->subscribeArtDmxUniverse(universe, [this, leds, num](const uint8_t* data, const uint16_t size, const ArtDmxMetadata &, const RemoteInfo &) { size_t n; if (num <= size / 3) { // OK: requested number of LEDs is less than received data size