Skip to content

Commit 2703c98

Browse files
committed
Bugfix in FX ripple_base()
1 parent 4cc2cc4 commit 2703c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/FX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,9 +2506,9 @@ static uint16_t ripple_base() {
25062506
#endif
25072507
{
25082508
int left = rippleorigin - propI -1;
2509-
int right = rippleorigin + propI +3;
2509+
int right = rippleorigin + propI +2;
25102510
for (int v = 0; v < 4; v++) {
2511-
unsigned mag = scale8(cubicwave8((propF>>2)+(v-left)*64), amp);
2511+
unsigned mag = scale8(cubicwave8((propF>>2) + v * 64), amp);
25122512
SEGMENT.setPixelColor(left + v, color_blend(SEGMENT.getPixelColor(left + v), col, mag)); // TODO
25132513
SEGMENT.setPixelColor(right - v, color_blend(SEGMENT.getPixelColor(right - v), col, mag)); // TODO
25142514
}

0 commit comments

Comments
 (0)