From e95450b318ffc6178ecb07f6215804542fa0f9d6 Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Sat, 3 Jan 2026 15:45:44 +0100 Subject: [PATCH] replace cos8 with cos8_t correcting an oversight --- wled00/FX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 685df038..d60c5252 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -10276,7 +10276,7 @@ uint16_t mode_particleBalance(void) { if (SEGMENT.check3) // random, use perlin noise xgravity = ((int16_t)perlin8(SEGENV.aux0) - 128); else // sinusoidal - xgravity = (int16_t)cos8(SEGENV.aux0) - 128;//((int32_t)(SEGMENT.custom3 << 2) * cos8(SEGENV.aux0) + xgravity = (int16_t)cos8_t(SEGENV.aux0) - 128;//((int32_t)(SEGMENT.custom3 << 2) * cos8(SEGENV.aux0) // scale the force xgravity = (xgravity * ((SEGMENT.custom3+1) << 2)) / 128; // xgravity: -127 to +127 PartSys->applyForce(xgravity);