This commit is contained in:
音游玩的人 2023-07-15 16:06:30 +08:00 committed by GitHub
parent fc38c7414e
commit 3ccd2ba10b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,7 +277,7 @@ M_SELECT setting_menu[]
M_SELECT about_menu[] M_SELECT about_menu[]
{ {
{"WouoUI"}, {"WouoUI"},
{"v2.1"}, {"v2.2"},
{"Board: STM32F103"}, {"Board: STM32F103"},
{"Ram: 20k"}, {"Ram: 20k"},
{"Flash: 64k"}, {"Flash: 64k"},
@ -960,8 +960,11 @@ void layer_init_out()
//动画函数 //动画函数
void animation(float *a, float *a_trg, uint8_t n) void animation(float *a, float *a_trg, uint8_t n)
{ {
if (fabs(*a - *a_trg) < 0.15) *a = *a_trg; if (*a != *a_trg)
if (*a != *a_trg) *a += (*a_trg - *a) / (ui.param[n] / 10.0); {
if (fabs(*a - *a_trg) < 0.15) *a = *a_trg;
else *a += (*a_trg - *a) / (ui.param[n] / 10.0);
}
} }
//消失函数 //消失函数