nyx: fix s_printf bugs pointed by format checker

This commit is contained in:
CTCaer
2022-05-12 16:43:18 +03:00
parent b6384d5da5
commit b9cdf5d697
4 changed files with 11 additions and 11 deletions

View File

@@ -2176,7 +2176,7 @@ static void _nyx_set_default_styles(lv_theme_t * th)
lv_color_t tmp_color = lv_color_hsv_to_rgb(n_cfg.themecolor, 100, 100);
text_color = malloc(32);
s_printf(text_color, "#%06X", tmp_color.full & 0xFFFFFF);
s_printf(text_color, "#%06X", (u32)(tmp_color.full & 0xFFFFFF));
}
lv_task_t *task_bpmp_clock;