We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b556da8 commit e95450bCopy full SHA for e95450b
wled00/FX.cpp
@@ -10276,7 +10276,7 @@ uint16_t mode_particleBalance(void) {
10276
if (SEGMENT.check3) // random, use perlin noise
10277
xgravity = ((int16_t)perlin8(SEGENV.aux0) - 128);
10278
else // sinusoidal
10279
- 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)
10280
// scale the force
10281
xgravity = (xgravity * ((SEGMENT.custom3+1) << 2)) / 128; // xgravity: -127 to +127
10282
PartSys->applyForce(xgravity);
0 commit comments