Fix speed reduction in usermod_v2_animartrix

This commit is contained in:
Will Tatam
2023-06-29 23:31:56 +01:00
parent 40751b46bf
commit 1c8c1bb657

View File

@@ -69,7 +69,7 @@ class ANIMartRIXMod:public ANIMartRIX {
}
float speedFactor = 1.0;
if (SEGMENT.speed < 128) {
speedFactor = map(SEGMENT.speed, 0, 127, 1, 10) / 10;
speedFactor = (float) map(SEGMENT.speed, 0, 127, 1, 10) / 10.0f;
}
else{
speedFactor = map(SEGMENT.speed, 128, 255, 10, 100) / 10;