From 8cb1cf55f2608d7acd772e7788c0899c4e2e19f1 Mon Sep 17 00:00:00 2001
From: Mateusz Salamon <mateusz@msalamon.pl>
Date: Sun, 10 May 2020 17:17:24 +0200
Subject: [PATCH] Fix NULL in FX Init

---
 Core/Src/ws2812b_fx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/Src/ws2812b_fx.c b/Core/Src/ws2812b_fx.c
index 9acec8f..b9a3067 100644
--- a/Core/Src/ws2812b_fx.c
+++ b/Core/Src/ws2812b_fx.c
@@ -213,7 +213,7 @@ FX_STATUS WS2812BFX_Init(uint16_t Segments)
 			SegmentsTmp[i].IdStart = div;
 			div += ((WS2812B_LEDS + 1) / Segments) - 1;
 			SegmentsTmp[i].IdStop = div;
-			if(SegmentsTmp[i].IdStop >= WS2812B_LEDS) Ws28b12b_Segments[i].IdStop = WS2812B_LEDS - 1;
+			if(SegmentsTmp[i].IdStop >= WS2812B_LEDS) SegmentsTmp[i].IdStop = WS2812B_LEDS - 1;
 			div++;
 		}
 	}