refactor: rename cnt to count
This commit is contained in:
@@ -43,7 +43,7 @@ lv_obj_t * obj_child_node_create(lv_obj_t * par, view_t * ui)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
uint32_t cnt = lv_obj_get_child_cnt(par);
|
||||
uint32_t cnt = lv_obj_get_child_count(par);
|
||||
|
||||
lv_obj_t * obj = lv_obj_create(par);
|
||||
lv_obj_add_style(obj, &ui->obj_def_style, 0);
|
||||
|
||||
@@ -1110,7 +1110,7 @@ static void color_changer_anim_cb(void * var, int32_t v)
|
||||
if(v > LV_OPA_COVER) v = LV_OPA_COVER;
|
||||
|
||||
uint32_t i;
|
||||
for(i = 0; i < lv_obj_get_child_cnt(obj); i++) {
|
||||
for(i = 0; i < lv_obj_get_child_count(obj); i++) {
|
||||
lv_obj_set_style_opa(lv_obj_get_child(obj, i), v, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user