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:
@@ -189,7 +189,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;
|
||||
|
||||
Reference in New Issue
Block a user