refactor: rename cnt to count

This commit is contained in:
Gabor Kiss-Vamosi
2023-11-15 22:38:24 +01:00
parent 43a231cf5a
commit 235d580a51
52 changed files with 185 additions and 175 deletions

View File

@@ -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);

View File

@@ -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);
}