diff --git a/docs/others/obj_property.rst b/docs/others/obj_property.rst index fc52f6898..f6471138d 100644 --- a/docs/others/obj_property.rst +++ b/docs/others/obj_property.rst @@ -71,4 +71,4 @@ all properties to an array now and set properties with a for loop. { .id = LV_STYLE_BG_COLOR, .color = (lv_color_t){.red = 0x11, .green = 0x22, .blue = 0x33}, }, } - LV_OBJ_PROPERTY_ARRAY_SET(obj, props); + LV_OBJ_SET_PROPERTY_ARRAY(obj, props); diff --git a/src/core/lv_obj_property.h b/src/core/lv_obj_property.h index eaf3006e1..71b4e2264 100644 --- a/src/core/lv_obj_property.h +++ b/src/core/lv_obj_property.h @@ -41,7 +41,7 @@ struct _lv_obj_t; #define LV_PROPERTY_ID_INDEX(id) ((id) & 0xfffffff) /*Set properties from an array of lv_property_t*/ -#define LV_OBJ_PROPERTY_ARRAY_SET(obj, array) lv_obj_set_properties(obj, array, sizeof(array)/sizeof(array[0])) +#define LV_OBJ_SET_PROPERTY_ARRAY(obj, array) lv_obj_set_properties(obj, array, sizeof(array)/sizeof(array[0])) /** * Group of predefined widget ID start value.