mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
New function for formatting large-range values for output, both printed and voiced. This replaces num2max5(). It is currently used for the total/free space display in the info menu, for the recorded number of bytes (recorders) and the MMC debug info (Ondios).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5721 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
19afad88f8
commit
2116bba296
7 changed files with 209 additions and 100 deletions
|
|
@ -1268,32 +1268,19 @@ static bool view_runtime(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_MMC
|
#ifdef HAVE_MMC
|
||||||
/* value is 10 * real value */
|
|
||||||
static unsigned char prep_value_unit(unsigned long *value,
|
|
||||||
const unsigned char *units)
|
|
||||||
{
|
|
||||||
int unit_no = 0;
|
|
||||||
|
|
||||||
while (*value >= 10000)
|
|
||||||
{
|
|
||||||
*value /= 1000;
|
|
||||||
unit_no++;
|
|
||||||
}
|
|
||||||
return units[unit_no];
|
|
||||||
}
|
|
||||||
|
|
||||||
bool dbg_mmc_info(void)
|
bool dbg_mmc_info(void)
|
||||||
{
|
{
|
||||||
bool done = false;
|
bool done = false;
|
||||||
int currval = 0;
|
int currval = 0;
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
tCardInfo *card;
|
tCardInfo *card;
|
||||||
unsigned char pbuf[32];
|
unsigned char pbuf[32], pbuf2[32];
|
||||||
unsigned char card_name[7];
|
unsigned char card_name[7];
|
||||||
unsigned char unit;
|
|
||||||
|
|
||||||
static const unsigned char i_vmin[] = { 0, 1, 5, 10, 25, 35, 60, 100 };
|
static const unsigned char i_vmin[] = { 0, 1, 5, 10, 25, 35, 60, 100 };
|
||||||
static const unsigned char i_vmax[] = { 1, 5, 10, 25, 35, 45, 80, 200 };
|
static const unsigned char i_vmax[] = { 1, 5, 10, 25, 35, 45, 80, 200 };
|
||||||
|
static const unsigned char *kbit_units[] = { "kBit/s", "MBit/s", "GBit/s" };
|
||||||
|
static const unsigned char *nsec_units[] = { "ns", "µs", "ms" };
|
||||||
|
|
||||||
card_name[6] = '\0';
|
card_name[6] = '\0';
|
||||||
|
|
||||||
|
|
@ -1337,24 +1324,14 @@ bool dbg_mmc_info(void)
|
||||||
}
|
}
|
||||||
else /* Technical details */
|
else /* Technical details */
|
||||||
{
|
{
|
||||||
value = card->speed / 100;
|
output_dyn_value(pbuf2, sizeof pbuf2, card->speed / 1000,
|
||||||
unit = prep_value_unit(&value, "kMG");
|
kbit_units, false);
|
||||||
if (value < 100)
|
snprintf(pbuf, sizeof pbuf, "Speed: %s", pbuf2);
|
||||||
snprintf(pbuf, sizeof(pbuf), "Speed: %d.%01d %cBit/s",
|
|
||||||
(int)(value / 10), (int)(value % 10), unit);
|
|
||||||
else
|
|
||||||
snprintf(pbuf, sizeof(pbuf), "Speed: %d %cBit/s",
|
|
||||||
(int)(value / 10), unit);
|
|
||||||
lcd_puts(0, 1, pbuf);
|
lcd_puts(0, 1, pbuf);
|
||||||
|
|
||||||
value = card->tsac;
|
output_dyn_value(pbuf2, sizeof pbuf2, card->tsac,
|
||||||
unit = prep_value_unit(&value, "nµm");
|
nsec_units, false);
|
||||||
if (value < 100)
|
snprintf(pbuf, sizeof pbuf, "Tsac: %s", pbuf2);
|
||||||
snprintf(pbuf, sizeof(pbuf), "Tsac: %d.%01d %cs",
|
|
||||||
(int)(value / 10), (int)(value % 10), unit);
|
|
||||||
else
|
|
||||||
snprintf(pbuf, sizeof(pbuf), "Tsac: %d %cs",
|
|
||||||
(int)(value / 10), unit);
|
|
||||||
lcd_puts(0, 2, pbuf);
|
lcd_puts(0, 2, pbuf);
|
||||||
|
|
||||||
snprintf(pbuf, sizeof(pbuf), "Nsac: %d clk", card->nsac);
|
snprintf(pbuf, sizeof(pbuf), "Nsac: %d clk", card->nsac);
|
||||||
|
|
|
||||||
|
|
@ -985,16 +985,16 @@ voice: "Aufnahmeeinstellungen"
|
||||||
new: "Aufnahmeeinstellungen"
|
new: "Aufnahmeeinstellungen"
|
||||||
|
|
||||||
id: LANG_DISK_STAT
|
id: LANG_DISK_STAT
|
||||||
desc: disk size info
|
desc: DEPRECATED
|
||||||
eng: "Disk: %d.%dGB"
|
eng: ""
|
||||||
voice: ""
|
voice: ""
|
||||||
new: "HDD: %d,%dGB"
|
new:
|
||||||
|
|
||||||
id: LANG_DISK_FREE_STAT
|
id: LANG_DISK_FREE_STAT
|
||||||
desc: disk size info
|
desc: DEPRECATED
|
||||||
eng: "Free: %d.%dGB"
|
eng: ""
|
||||||
voice: "Freier Plattenplatz:"
|
voice: ""
|
||||||
new: "Frei: %d,%dGB"
|
new:
|
||||||
|
|
||||||
id: LANG_POWEROFF
|
id: LANG_POWEROFF
|
||||||
desc: disk poweroff flag
|
desc: disk poweroff flag
|
||||||
|
|
@ -2256,9 +2256,9 @@ voice: "Plus"
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_POINT
|
id: VOICE_POINT
|
||||||
desc: spoken only, decimal separator for composing numbers
|
desc: DEPRECATED
|
||||||
eng: ""
|
eng: ""
|
||||||
voice: "Komma"
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_MILLISECONDS
|
id: VOICE_MILLISECONDS
|
||||||
|
|
@ -2322,15 +2322,15 @@ voice: "Prozent"
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_MEGABYTE
|
id: VOICE_MEGABYTE
|
||||||
desc: spoken only, a unit postfix
|
desc: DEPRECATED
|
||||||
eng: ""
|
eng: ""
|
||||||
voice: "Megabyte"
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_GIGABYTE
|
id: VOICE_GIGABYTE
|
||||||
desc: spoken only, a unit postfix
|
desc: DEPRECATED
|
||||||
eng: ""
|
eng: ""
|
||||||
voice: "Gigabyte"
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_MILLIAMPHOURS
|
id: VOICE_MILLIAMPHOURS
|
||||||
|
|
@ -2929,3 +2929,46 @@ desc: in battery settings
|
||||||
eng: "NiMH"
|
eng: "NiMH"
|
||||||
voice: "Nickel-Metallhydrid"
|
voice: "Nickel-Metallhydrid"
|
||||||
new: "NiMH"
|
new: "NiMH"
|
||||||
|
|
||||||
|
id: LANG_POINT
|
||||||
|
desc: decimal separator for composing numbers
|
||||||
|
eng: "."
|
||||||
|
voice: "Komma"
|
||||||
|
new: ","
|
||||||
|
|
||||||
|
id: LANG_BYTE
|
||||||
|
desc: a unit postfix
|
||||||
|
eng: "B"
|
||||||
|
voice: ""
|
||||||
|
new: "B"
|
||||||
|
|
||||||
|
id: LANG_KILOBYTE
|
||||||
|
desc: a unit postfix, also voiced
|
||||||
|
eng: "KB"
|
||||||
|
voice: "Kilobyte"
|
||||||
|
new: "KB"
|
||||||
|
|
||||||
|
id: LANG_MEGABYTE
|
||||||
|
desc: a unit postfix, also voiced
|
||||||
|
eng: "MB"
|
||||||
|
voice: "Megabyte"
|
||||||
|
new: "MB"
|
||||||
|
|
||||||
|
id: LANG_GIGABYTE
|
||||||
|
desc: a unit postfix, also voiced
|
||||||
|
eng: "GB"
|
||||||
|
voice: "Gigabyte"
|
||||||
|
new: "GB"
|
||||||
|
|
||||||
|
id: LANG_DISK_SIZE_INFO
|
||||||
|
desc: disk size info
|
||||||
|
eng: "HDD:"
|
||||||
|
voice: ""
|
||||||
|
new: "Disk:"
|
||||||
|
|
||||||
|
id: LANG_DISK_FREE_INFO
|
||||||
|
desc: disk size info
|
||||||
|
eng: "Free:"
|
||||||
|
voice: "Freier Plattenplatz:"
|
||||||
|
new: "Frei:"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -998,15 +998,15 @@ voice: "Recording Settings"
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: LANG_DISK_STAT
|
id: LANG_DISK_STAT
|
||||||
desc: disk size info
|
desc: DEPRECATED
|
||||||
eng: "Disk: %d.%dGB"
|
eng: ""
|
||||||
voice: ""
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: LANG_DISK_FREE_STAT
|
id: LANG_DISK_FREE_STAT
|
||||||
desc: disk size info
|
desc: DEPRECATED
|
||||||
eng: "Free: %d.%dGB"
|
eng: ""
|
||||||
voice: "Free diskspace:"
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: LANG_POWEROFF
|
id: LANG_POWEROFF
|
||||||
|
|
@ -2270,9 +2270,9 @@ voice: "plus"
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_POINT
|
id: VOICE_POINT
|
||||||
desc: spoken only, decimal separator for composing numbers
|
desc: DEPRECATED
|
||||||
eng: ""
|
eng: ""
|
||||||
voice: "point"
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_MILLISECONDS
|
id: VOICE_MILLISECONDS
|
||||||
|
|
@ -2336,15 +2336,15 @@ voice: "percent"
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_MEGABYTE
|
id: VOICE_MEGABYTE
|
||||||
desc: spoken only, a unit postfix, currently not used
|
desc: DEPRECATED
|
||||||
eng: ""
|
eng: ""
|
||||||
voice: "megabyte"
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_GIGABYTE
|
id: VOICE_GIGABYTE
|
||||||
desc: spoken only, a unit postfix
|
desc: DEPRECATED
|
||||||
eng: ""
|
eng: ""
|
||||||
voice: "gigabyte"
|
voice: ""
|
||||||
new:
|
new:
|
||||||
|
|
||||||
id: VOICE_MILLIAMPHOURS
|
id: VOICE_MILLIAMPHOURS
|
||||||
|
|
@ -2943,3 +2943,46 @@ desc: in battery settings
|
||||||
eng: "NiMH"
|
eng: "NiMH"
|
||||||
voice: "Nickel metal hydride"
|
voice: "Nickel metal hydride"
|
||||||
new:
|
new:
|
||||||
|
|
||||||
|
id: LANG_POINT
|
||||||
|
desc: decimal separator for composing numbers
|
||||||
|
eng: "."
|
||||||
|
voice: "point"
|
||||||
|
new:
|
||||||
|
|
||||||
|
id: LANG_BYTE
|
||||||
|
desc: a unit postfix
|
||||||
|
eng: "B"
|
||||||
|
voice: ""
|
||||||
|
new:
|
||||||
|
|
||||||
|
id: LANG_KILOBYTE
|
||||||
|
desc: a unit postfix, also voiced
|
||||||
|
eng: "KB"
|
||||||
|
voice: "kilobyte"
|
||||||
|
new:
|
||||||
|
|
||||||
|
id: LANG_MEGABYTE
|
||||||
|
desc: a unit postfix, also voiced
|
||||||
|
eng: "MB"
|
||||||
|
voice: "megabyte"
|
||||||
|
new:
|
||||||
|
|
||||||
|
id: LANG_GIGABYTE
|
||||||
|
desc: a unit postfix, also voiced
|
||||||
|
eng: "GB"
|
||||||
|
voice: "gigabyte"
|
||||||
|
new:
|
||||||
|
|
||||||
|
id: LANG_DISK_SIZE_INFO
|
||||||
|
desc: disk size info
|
||||||
|
eng: "Disk:"
|
||||||
|
voice: ""
|
||||||
|
new:
|
||||||
|
|
||||||
|
id: LANG_DISK_FREE_INFO
|
||||||
|
desc: disk size info
|
||||||
|
eng: "Free:"
|
||||||
|
voice: "Free diskspace:"
|
||||||
|
new:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ extern bool simulate_usb(void);
|
||||||
#endif
|
#endif
|
||||||
bool show_info(void)
|
bool show_info(void)
|
||||||
{
|
{
|
||||||
char s[32];
|
char s[32], s2[32];
|
||||||
/* avoid overflow for 8MB mod :) was: ((mp3end - mp3buf) * 1000) / 0x100000; */
|
/* avoid overflow for 8MB mod :) was: ((mp3end - mp3buf) * 1000) / 0x100000; */
|
||||||
int buflen = ((mp3end - mp3buf) * 100) / 0x19999;
|
int buflen = ((mp3end - mp3buf) * 100) / 0x19999;
|
||||||
int integer, decimal;
|
int integer, decimal;
|
||||||
|
|
@ -146,9 +146,13 @@ bool show_info(void)
|
||||||
int state = 1;
|
int state = 1;
|
||||||
unsigned long size, free;
|
unsigned long size, free;
|
||||||
|
|
||||||
|
const unsigned char *kbyte_units[] = {
|
||||||
|
ID2P(LANG_KILOBYTE),
|
||||||
|
ID2P(LANG_MEGABYTE),
|
||||||
|
ID2P(LANG_GIGABYTE)
|
||||||
|
};
|
||||||
|
|
||||||
fat_size( IF_MV2(0,) &size, &free );
|
fat_size( IF_MV2(0,) &size, &free );
|
||||||
size /= 1024;
|
|
||||||
free /= 1024;
|
|
||||||
|
|
||||||
if (global_settings.talk_menu)
|
if (global_settings.talk_menu)
|
||||||
{ /* say whatever is reasonable, no real connection to the screen */
|
{ /* say whatever is reasonable, no real connection to the screen */
|
||||||
|
|
@ -160,11 +164,8 @@ bool show_info(void)
|
||||||
talk_value(battery_level(), UNIT_PERCENT, true);
|
talk_value(battery_level(), UNIT_PERCENT, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
talk_id(LANG_DISK_FREE_STAT, enqueue);
|
talk_id(LANG_DISK_FREE_INFO, enqueue);
|
||||||
talk_number(free / 1024, true);
|
output_dyn_value(NULL, 0, free, kbyte_units, true); /* NULL == talk */
|
||||||
decimal = free % 1024 / 100;
|
|
||||||
talk_id(VOICE_POINT, true);
|
|
||||||
talk_value(decimal, UNIT_GB, true);
|
|
||||||
|
|
||||||
#ifdef HAVE_RTC
|
#ifdef HAVE_RTC
|
||||||
{
|
{
|
||||||
|
|
@ -220,14 +221,12 @@ bool show_info(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state & 2) {
|
if (state & 2) {
|
||||||
integer = size / 1024;
|
output_dyn_value(s2, sizeof s2, size, kbyte_units, true);
|
||||||
decimal = size % 1024 / 100;
|
snprintf(s, sizeof s, "%s %s", str(LANG_DISK_SIZE_INFO), s2);
|
||||||
snprintf(s, sizeof s, str(LANG_DISK_STAT), integer, decimal);
|
|
||||||
lcd_puts(0, y++, s);
|
lcd_puts(0, y++, s);
|
||||||
|
|
||||||
integer = free / 1024;
|
output_dyn_value(s2, sizeof s2, free, kbyte_units, true);
|
||||||
decimal = free % 1024 / 100;
|
snprintf(s, sizeof s, "%s %s", str(LANG_DISK_FREE_INFO), s2);
|
||||||
snprintf(s, sizeof s, str(LANG_DISK_FREE_STAT), integer, decimal);
|
|
||||||
lcd_puts(0, y++, s);
|
lcd_puts(0, y++, s);
|
||||||
}
|
}
|
||||||
lcd_update();
|
lcd_update();
|
||||||
|
|
|
||||||
73
apps/misc.c
73
apps/misc.c
|
|
@ -28,6 +28,7 @@
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "timefuncs.h"
|
#include "timefuncs.h"
|
||||||
#include "screens.h"
|
#include "screens.h"
|
||||||
|
#include "talk.h"
|
||||||
#include "mpeg.h"
|
#include "mpeg.h"
|
||||||
#include "mp3_playback.h"
|
#include "mp3_playback.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
@ -42,29 +43,63 @@
|
||||||
#define ONE_KILOBYTE 1024
|
#define ONE_KILOBYTE 1024
|
||||||
#define ONE_MEGABYTE (1024*1024)
|
#define ONE_MEGABYTE (1024*1024)
|
||||||
|
|
||||||
/* The point of this function would be to return a string of the input data,
|
/* Format a large-range value for output, using the appropriate unit so that
|
||||||
but never longer than 5 columns. Add suffix k and M when suitable...
|
* the displayed value is in the range 1 <= display < 1000 (1024 for "binary"
|
||||||
Make sure to have space for 6 bytes in the buffer. 5 letters plus the
|
* units) if possible, and 3 significant digits are shown. If a buffer is
|
||||||
terminating zero byte. */
|
* given, the result is snprintf()'d into that buffer, otherwise the result is
|
||||||
char *num2max5(unsigned int bytes, char *max5)
|
* voiced.*/
|
||||||
|
char *output_dyn_value(char *buf, int buf_size, int value,
|
||||||
|
const unsigned char **units, bool bin_scale)
|
||||||
{
|
{
|
||||||
if(bytes < 100000) {
|
int scale = bin_scale ? 1024 : 1000;
|
||||||
snprintf(max5, 6, "%5d", bytes);
|
int fraction = 0;
|
||||||
return max5;
|
int unit_no = 0;
|
||||||
|
char tbuf[5];
|
||||||
|
|
||||||
|
while (value >= scale)
|
||||||
|
{
|
||||||
|
fraction = value % scale;
|
||||||
|
value /= scale;
|
||||||
|
unit_no++;
|
||||||
}
|
}
|
||||||
if(bytes < (9999*ONE_KILOBYTE)) {
|
if (bin_scale)
|
||||||
snprintf(max5, 6, "%4dk", bytes/ONE_KILOBYTE);
|
fraction = fraction * 1000 / 1024;
|
||||||
return max5;
|
|
||||||
|
if (buf)
|
||||||
|
{
|
||||||
|
if (value >= 100 || !unit_no)
|
||||||
|
snprintf(tbuf, sizeof(tbuf), "%d", value);
|
||||||
|
else if (value >= 10)
|
||||||
|
snprintf(tbuf, sizeof(tbuf), "%d%s%01d", value, str(LANG_POINT),
|
||||||
|
fraction / 100);
|
||||||
|
else
|
||||||
|
snprintf(tbuf, sizeof(tbuf), "%d%s%02d", value, str(LANG_POINT),
|
||||||
|
fraction / 10);
|
||||||
|
|
||||||
|
snprintf(buf, buf_size, "%s %s", tbuf, P2STR(units[unit_no]));
|
||||||
}
|
}
|
||||||
if(bytes < (100*ONE_MEGABYTE)) {
|
else
|
||||||
/* 'XX.XM' is good as long as we're less than 100 megs */
|
{
|
||||||
snprintf(max5, 6, "%2d.%0dM",
|
if (value >= 100 || !unit_no)
|
||||||
bytes/ONE_MEGABYTE,
|
tbuf[0] = '\0';
|
||||||
(bytes%ONE_MEGABYTE)/(ONE_MEGABYTE/10) );
|
else if (value >= 10)
|
||||||
return max5;
|
snprintf(tbuf, sizeof(tbuf), "%01d", fraction / 100);
|
||||||
|
else
|
||||||
|
snprintf(tbuf, sizeof(tbuf), "%02d", fraction / 10);
|
||||||
|
|
||||||
|
/* strip trailing zeros from the fraction */
|
||||||
|
for (i = strlen(tbuf) - 1; (i >= 0) && (tbuf[i] == '0'); i--)
|
||||||
|
tbuf[i] = '\0';
|
||||||
|
|
||||||
|
talk_number(value, true);
|
||||||
|
if (strlen(tbuf))
|
||||||
|
{
|
||||||
|
talk_id(LANG_POINT, true);
|
||||||
|
talk_spell(tbuf, true);
|
||||||
|
}
|
||||||
|
talk_id(P2ID(units[unit_no]), true);
|
||||||
}
|
}
|
||||||
snprintf(max5, 6, "%4dM", bytes/ONE_MEGABYTE);
|
return buf;
|
||||||
return max5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read (up to) a line of text from fd into buffer and return number of bytes
|
/* Read (up to) a line of text from fd into buffer and return number of bytes
|
||||||
|
|
|
||||||
12
apps/misc.h
12
apps/misc.h
|
|
@ -19,11 +19,13 @@
|
||||||
#ifndef MISC_H
|
#ifndef MISC_H
|
||||||
#define MISC_H
|
#define MISC_H
|
||||||
|
|
||||||
/* The point of this function would be to return a string of the input data,
|
/* Format a large-range value for output, using the appropriate unit so that
|
||||||
but never longer than 5 columns. Add suffix k and M when suitable...
|
* the displayed value is in the range 1 <= display < 1000 (1024 for "binary"
|
||||||
Make sure to have space for 6 bytes in the buffer. 5 letters plus the
|
* units) if possible, and 3 significant digits are shown. If a buffer is
|
||||||
terminating zero byte. */
|
* given, the result is snprintf()'d into that buffer, otherwise the result is
|
||||||
char *num2max5(unsigned int bytes, char *max5);
|
* voiced.*/
|
||||||
|
void output_dyn_value(char *buf, int buf_size, int value,
|
||||||
|
const unsigned char **units, bool bin_scale);
|
||||||
|
|
||||||
/* Read (up to) a line of text from fd into buffer and return number of bytes
|
/* Read (up to) a line of text from fd into buffer and return number of bytes
|
||||||
* read (which may be larger than the number of bytes stored in buffer). If
|
* read (which may be larger than the number of bytes stored in buffer). If
|
||||||
|
|
|
||||||
|
|
@ -248,6 +248,13 @@ bool recording_screen(void)
|
||||||
bool led_state;
|
bool led_state;
|
||||||
int led_delay;
|
int led_delay;
|
||||||
|
|
||||||
|
const unsigned char *byte_units[] = {
|
||||||
|
ID2P(LANG_BYTE),
|
||||||
|
ID2P(LANG_KILOBYTE),
|
||||||
|
ID2P(LANG_MEGABYTE),
|
||||||
|
ID2P(LANG_GIGABYTE)
|
||||||
|
};
|
||||||
|
|
||||||
cursor = 0;
|
cursor = 0;
|
||||||
mpeg_init_recording();
|
mpeg_init_recording();
|
||||||
|
|
||||||
|
|
@ -587,10 +594,13 @@ bool recording_screen(void)
|
||||||
dhours, dminutes);
|
dhours, dminutes);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
output_dyn_value(buf2, sizeof buf2,
|
||||||
|
mpeg_num_recorded_bytes(),
|
||||||
|
byte_units, true);
|
||||||
snprintf(buf, 32, "%s %s",
|
snprintf(buf, 32, "%s %s",
|
||||||
str(LANG_RECORDING_SIZE),
|
str(LANG_RECORDING_SIZE), buf2);
|
||||||
num2max5(mpeg_num_recorded_bytes(),
|
}
|
||||||
buf2));
|
|
||||||
}
|
}
|
||||||
lcd_puts(0, 1, buf);
|
lcd_puts(0, 1, buf);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue