The lv_anim_set_exec_cb callback accepts a int32_t, but the
two callbacks used (lv_img_set_zoom & lv_obj_set_x) both
have a 16-bit value parameter. The compiler may handle this
OK, but adding adapter functions to eliminate compile-time
warnings - and possibly actual issues with some compilers.
The
lv_anim_set_exec_cb
callback accepts aint32_t
, but the two callbacks used (lv_img_set_zoom
&lv_obj_set_x
) both have a 16-bit value parameter. The compiler may handle this OK, but adding adapter functions to eliminate compile-time warnings - and possibly actual issues with some compilers.