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:
bjsylvia
2023-12-08 03:24:48 +08:00
committed by GitHub
parent f717462532
commit 07bd3587ce

View File

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