Skip to content

Commit e95450b

Browse files
committed
replace cos8 with cos8_t correcting an oversight
1 parent b556da8 commit e95450b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/FX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10276,7 +10276,7 @@ uint16_t mode_particleBalance(void) {
1027610276
if (SEGMENT.check3) // random, use perlin noise
1027710277
xgravity = ((int16_t)perlin8(SEGENV.aux0) - 128);
1027810278
else // sinusoidal
10279-
xgravity = (int16_t)cos8(SEGENV.aux0) - 128;//((int32_t)(SEGMENT.custom3 << 2) * cos8(SEGENV.aux0)
10279+
xgravity = (int16_t)cos8_t(SEGENV.aux0) - 128;//((int32_t)(SEGMENT.custom3 << 2) * cos8(SEGENV.aux0)
1028010280
// scale the force
1028110281
xgravity = (xgravity * ((SEGMENT.custom3+1) << 2)) / 128; // xgravity: -127 to +127
1028210282
PartSys->applyForce(xgravity);

0 commit comments

Comments
 (0)