From 1c8c1bb6579e237dbb6820a2d60a4ca167560d91 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Thu, 29 Jun 2023 23:31:56 +0100 Subject: [PATCH] Fix speed reduction in usermod_v2_animartrix --- usermods/usermod_v2_animartrix/usermod_v2_animartrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;