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 560eb37 commit f58187eCopy full SHA for f58187e
1 file changed
wled00/FX.cpp
@@ -6837,7 +6837,7 @@ void mode_gravcenter_base(unsigned mode) {
6837
uint8_t gravity = 8 - SEGMENT.speed/32;
6838
int offset = 1;
6839
if(mode == 2) offset = 0; // Gravimeter
6840
- if (tempsamp >= gravcen->topLED) gravcen->topLED = tempsamp-offset;
+ if (tempsamp >= gravcen->topLED + offset) gravcen->topLED = tempsamp-offset;
6841
else if (gravcen->gravityCounter % gravity == 0) gravcen->topLED--;
6842
6843
if(mode == 1) { //Gravcentric
0 commit comments