chore: fix compile warnings (#6817)

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2024-09-30 20:58:57 +08:00
committed by GitHub
parent 0458acd998
commit 2601a26c7f
7 changed files with 13 additions and 13 deletions

View File

@@ -76,7 +76,7 @@ static void increment_thread_entry(void * user_data)
lv_lock();
counter_label = lv_label_create(lv_scr_act());
lv_obj_align(counter_label, LV_ALIGN_CENTER, 0, 0);
lv_label_set_text_fmt(counter_label, "Pressed %u times", press_count);
lv_label_set_text_fmt(counter_label, "Pressed %" LV_PRIu32 " times", press_count);
lv_unlock();
while(true) {
@@ -86,7 +86,7 @@ static void increment_thread_entry(void * user_data)
press_count += 1;
lv_lock();
lv_label_set_text_fmt(counter_label, "Pressed %u times", press_count);
lv_label_set_text_fmt(counter_label, "Pressed %" LV_PRIu32 " times", press_count);
lv_unlock();
}
}