diff --git a/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h b/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h index f8925c8a..e1fceb94 100644 --- a/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h +++ b/usermods/usermod_v2_animartrix/usermod_v2_animartrix.h @@ -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;