From 1151b615a0e0a16bfb0c7cef9fd802274abcfcc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Thu, 14 Jul 2022 13:47:30 +0200 Subject: [PATCH] Fix for SEGLEN --- wled00/FX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX.h b/wled00/FX.h index 198e9c97..ea2907f6 100644 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -90,7 +90,7 @@ uint32_t color_add(uint32_t,uint32_t); #define SEGMENT strip._segments[strip.getCurrSegmentId()] #define SEGENV strip._segments[strip.getCurrSegmentId()].runtime #define SEGCOLOR(x) strip.segColor(x) -#define SEGLEN strip.getMappingLength() +#define SEGLEN strip._virtualSegmentLength #define SPEED_FORMULA_L (5U + (50U*(255U - SEGMENT.speed))/SEGLEN) // some common colors