Various small fixes
This commit is contained in:
@@ -1462,9 +1462,10 @@ static lv_res_t _create_window_sdcard_info_status(lv_obj_t *btn)
|
||||
|
||||
lv_obj_t * lb_val3 = lv_label_create(val3, lb_desc);
|
||||
|
||||
s_printf(txt_buf, "\n%s\n%d KiB\n%d MiB",
|
||||
s_printf(txt_buf, "\n%s\n%d %s\n%d MiB",
|
||||
sd_fs.fs_type == FS_EXFAT ? ("exFAT "SYMBOL_SHRK) : ("FAT32"),
|
||||
(sd_fs.csize > 1) ? (sd_fs.csize >> 1) : 512,
|
||||
(sd_fs.csize > 1) ? "KiB" : "B",
|
||||
sd_fs.free_clst * sd_fs.csize >> SECTORS_TO_MIB_COEFF);
|
||||
|
||||
lv_label_set_text(lb_val3, txt_buf);
|
||||
|
||||
Reference in New Issue
Block a user