diff options
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 0ffa16f31b..35da6f7127 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -248,6 +248,13 @@ bool recording_screen(void) | |||
248 | bool led_state; | 248 | bool led_state; |
249 | int led_delay; | 249 | int led_delay; |
250 | 250 | ||
251 | const unsigned char *byte_units[] = { | ||
252 | ID2P(LANG_BYTE), | ||
253 | ID2P(LANG_KILOBYTE), | ||
254 | ID2P(LANG_MEGABYTE), | ||
255 | ID2P(LANG_GIGABYTE) | ||
256 | }; | ||
257 | |||
251 | cursor = 0; | 258 | cursor = 0; |
252 | mpeg_init_recording(); | 259 | mpeg_init_recording(); |
253 | 260 | ||
@@ -587,10 +594,13 @@ bool recording_screen(void) | |||
587 | dhours, dminutes); | 594 | dhours, dminutes); |
588 | } | 595 | } |
589 | else | 596 | else |
597 | { | ||
598 | output_dyn_value(buf2, sizeof buf2, | ||
599 | mpeg_num_recorded_bytes(), | ||
600 | byte_units, true); | ||
590 | snprintf(buf, 32, "%s %s", | 601 | snprintf(buf, 32, "%s %s", |
591 | str(LANG_RECORDING_SIZE), | 602 | str(LANG_RECORDING_SIZE), buf2); |
592 | num2max5(mpeg_num_recorded_bytes(), | 603 | } |
593 | buf2)); | ||
594 | } | 604 | } |
595 | lcd_puts(0, 1, buf); | 605 | lcd_puts(0, 1, buf); |
596 | 606 | ||