mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(anim) return the first anim if exec_cb is NULL in lv_anim_get()
Accprdign to the docs it should have worked like this. Related to #2535
This commit is contained in:
parent
192419e7bb
commit
fb7ea10401
@ -151,7 +151,7 @@ lv_anim_t * lv_anim_get(void * var, lv_anim_exec_xcb_t exec_cb)
|
||||
{
|
||||
lv_anim_t * a;
|
||||
_LV_LL_READ(&LV_GC_ROOT(_lv_anim_ll), a) {
|
||||
if(a->var == var && a->exec_cb == exec_cb) {
|
||||
if(a->var == var && (a->exec_cb == exec_cb || exec_cb == NULL)) {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user