This commit is contained in:
herexiong 2024-10-07 00:27:03 +08:00 committed by GitHub
commit 7f97d4af5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -889,7 +889,7 @@ void animation(float *a, float *a_trg, uint8_t n)
{
if (*a != *a_trg)
{
if (fabs(*a - *a_trg) < 0.15f) *a = *a_trg;
if (fabs(*a - *a_trg) < 1.0f) *a = *a_trg;
else *a += (*a_trg - *a) / (ui.param[n] / 10.0f);
}
}