diff --git a/main/modes/mickmode.cpp b/main/modes/mickmode.cpp index c1b9b64..4e47f0c 100644 --- a/main/modes/mickmode.cpp +++ b/main/modes/mickmode.cpp @@ -36,9 +36,9 @@ void MickMode::update() else { auto now = espchrono::millis_clock::now(); - auto timeDelta = std::chrono::floor(now - lastUpdate_).count(); + float timeDelta = std::chrono::floor(now - lastUpdate_).count(); // Make sure timeDelta can never be negative, otherwise the exponential below may explode - timeDelta = std::max(timeDelta, 0ll); + timeDelta = std::max(timeDelta, 0.f); lastUpdate_ = now; float alpha = 1.f - expf(-timeDelta / profileSettings.mickMode.smoothing);