diff options
| -rw-r--r-- | apps/main_menu.c | 8 | ||||
| -rw-r--r-- | apps/misc.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 21e8c09..ea66286 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -222,11 +222,19 @@ bool show_info(void) if (state & 2) { output_dyn_value(s2, sizeof s2, size, kbyte_units, true); +#ifdef HAVE_LCD_CHARCELLS + snprintf(s, sizeof s, "%s%s", str(LANG_DISK_SIZE_INFO), s2); +#else snprintf(s, sizeof s, "%s %s", str(LANG_DISK_SIZE_INFO), s2); +#endif lcd_puts(0, y++, s); output_dyn_value(s2, sizeof s2, free, kbyte_units, true); +#ifdef HAVE_LCD_CHARCELLS + snprintf(s, sizeof s, "%s%s", str(LANG_DISK_FREE_INFO), s2); +#else snprintf(s, sizeof s, "%s %s", str(LANG_DISK_FREE_INFO), s2); +#endif lcd_puts(0, y++, s); } lcd_update(); diff --git a/apps/misc.c b/apps/misc.c index 803966c..0c12440 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -77,7 +77,7 @@ char *output_dyn_value(char *buf, int buf_size, int value, snprintf(tbuf, sizeof(tbuf), "%d%s%02d", value, str(LANG_POINT), fraction / 10); - snprintf(buf, buf_size, "%s %s", tbuf, P2STR(units[unit_no])); + snprintf(buf, buf_size, "%s%s", tbuf, P2STR(units[unit_no])); } else { |