Check against rotations.

This commit is contained in:
Matt McWilliams 2024-01-22 11:42:21 -05:00
parent 78fb25b5a1
commit d96e0d30b3
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ void loop() {
}
rotations = (int) floor((float) pos / (float) maxPulses);
if (pos != lastRotationPosition) {
if (rotations != lastRotationPosition) {
lastRotationPosition = rotations;
frames = rotations * framesPerRotation;