fix: removed string format warnings for int32_t and uint32_t (#2924)
* fix:Removed string format warnings for int32_t and uint32_t re-handle #2722 * feat(rt-thread): add the option of built-in examples
This commit is contained in:
committed by
GitHub
parent
01daed356a
commit
70778fb9e4
@@ -25,17 +25,17 @@ void lv_example_scroll_2(void)
|
||||
lv_obj_set_flex_flow(panel, LV_FLEX_FLOW_ROW);
|
||||
lv_obj_align(panel, LV_ALIGN_CENTER, 0, 20);
|
||||
|
||||
unsigned int i;
|
||||
uint32_t i;
|
||||
for(i = 0; i < 10; i++) {
|
||||
lv_obj_t * btn = lv_btn_create(panel);
|
||||
lv_obj_set_size(btn, 150, lv_pct(100));
|
||||
|
||||
lv_obj_t * label = lv_label_create(btn);
|
||||
if(i == 3) {
|
||||
lv_label_set_text_fmt(label, "Panel %u\nno snap", i);
|
||||
lv_label_set_text_fmt(label, "Panel %"LV_PRIu32"\nno snap", i);
|
||||
lv_obj_clear_flag(btn, LV_OBJ_FLAG_SNAPPABLE);
|
||||
} else {
|
||||
lv_label_set_text_fmt(label, "Panel %u", i);
|
||||
lv_label_set_text_fmt(label, "Panel %"LV_PRIu32, i);
|
||||
}
|
||||
|
||||
lv_obj_center(label);
|
||||
|
||||
Reference in New Issue
Block a user