fixing a few implicit promotions to double

any expression with at least on "double" is evaluated as double, which is slow.
This commit is contained in:
Frank
2023-09-09 20:48:17 +02:00
parent c276515f5a
commit 0fcbefb7a5
5 changed files with 9 additions and 9 deletions

View File

@@ -187,7 +187,7 @@ void handleTransitions()
if (transitionActive && transitionDelayTemp > 0)
{
float tper = (millis() - transitionStartTime)/(float)transitionDelayTemp;
if (tper >= 1.0)
if (tper >= 1.0f)
{
strip.setTransitionMode(false);
transitionActive = false;