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
@@ -5,10 +5,10 @@ static void event_cb(lv_event_t * e)
|
||||
{
|
||||
LV_LOG_USER("Clicked");
|
||||
|
||||
static unsigned int cnt = 1;
|
||||
static uint32_t cnt = 1;
|
||||
lv_obj_t * btn = lv_event_get_target(e);
|
||||
lv_obj_t * label = lv_obj_get_child(btn, 0);
|
||||
lv_label_set_text_fmt(label, "%u", cnt);
|
||||
lv_label_set_text_fmt(label, "%"LV_PRIu32, cnt);
|
||||
cnt++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user