Skip to content

Commit f58187e

Browse files
authored
Fixed top-LED update logic in grav* audioreactive effects (#5602)
Fix topLED fallrate not responding to "Rate of fall" slider.
1 parent 560eb37 commit f58187e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wled00/FX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6837,7 +6837,7 @@ void mode_gravcenter_base(unsigned mode) {
68376837
uint8_t gravity = 8 - SEGMENT.speed/32;
68386838
int offset = 1;
68396839
if(mode == 2) offset = 0; // Gravimeter
6840-
if (tempsamp >= gravcen->topLED) gravcen->topLED = tempsamp-offset;
6840+
if (tempsamp >= gravcen->topLED + offset) gravcen->topLED = tempsamp-offset;
68416841
else if (gravcen->gravityCounter % gravity == 0) gravcen->topLED--;
68426842

68436843
if(mode == 1) { //Gravcentric

0 commit comments

Comments
 (0)