fix(arc): fix code format for arc example (#4955)
Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com> Co-authored-by: YanXiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
@@ -26,7 +26,7 @@ static void value_changed_event_cb(lv_event_t * e)
|
|||||||
lv_obj_t * arc = lv_event_get_target(e);
|
lv_obj_t * arc = lv_event_get_target(e);
|
||||||
lv_obj_t * label = lv_event_get_user_data(e);
|
lv_obj_t * label = lv_event_get_user_data(e);
|
||||||
|
|
||||||
lv_label_set_text_fmt(label, "%d%%", lv_arc_get_value(arc));
|
lv_label_set_text_fmt(label, "%" LV_PRId32 "%%", lv_arc_get_value(arc));
|
||||||
|
|
||||||
/*Rotate the label to the current position of the arc*/
|
/*Rotate the label to the current position of the arc*/
|
||||||
lv_arc_rotate_obj_to_angle(arc, label, 25);
|
lv_arc_rotate_obj_to_angle(arc, label, 25);
|
||||||
|
|||||||
Reference in New Issue
Block a user