Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2017-08-16 23:50:59 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2017-08-16 23:50:59 +0300
commitc3572525cb5704f4437f87b69b390b04ca2f0bb9 (patch)
tree5acb0cafef359cea912bd41c753249eddb5883de
parent7a064b9f16c834c14ef2d7b9c1454fb7d6df632d (diff)
Fix #450 - guard the OctoWS2811 WS2813 timings/instance against an older version of OctoWS2811 that doesn't define the chip.
-rw-r--r--FastLED.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/FastLED.h b/FastLED.h
index 62379c13..be8fd8c9 100644
--- a/FastLED.h
+++ b/FastLED.h
@@ -356,7 +356,9 @@ public:
switch(CHIPSET) {
case OCTOWS2811: { static COctoWS2811Controller<RGB_ORDER,WS2811_800kHz> controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
case OCTOWS2811_400: { static COctoWS2811Controller<RGB_ORDER,WS2811_400kHz> controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
+#ifdef WS2813_800kHz
case OCTOWS2813: { static COctoWS2811Controller<RGB_ORDER,WS2813_800kHz> controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
+#endif
}
}