forked from len0rd/rockbox
Removed the percent symbol from the volume and battery WPS tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7947 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7dd4af8556
commit
bba039d22b
1 changed files with 2 additions and 2 deletions
|
|
@ -344,7 +344,7 @@ static char* get_tag(struct wps_data* wps_data,
|
||||||
|
|
||||||
case 'v': /* volume */
|
case 'v': /* volume */
|
||||||
*flags |= WPS_REFRESH_DYNAMIC;
|
*flags |= WPS_REFRESH_DYNAMIC;
|
||||||
snprintf(buf, buf_size, "%d%%", global_settings.volume);
|
snprintf(buf, buf_size, "%d", global_settings.volume);
|
||||||
*intval = global_settings.volume / 10 + 1;
|
*intval = global_settings.volume / 10 + 1;
|
||||||
return buf;
|
return buf;
|
||||||
|
|
||||||
|
|
@ -403,7 +403,7 @@ static char* get_tag(struct wps_data* wps_data,
|
||||||
int l = battery_level();
|
int l = battery_level();
|
||||||
if (l > -1)
|
if (l > -1)
|
||||||
{
|
{
|
||||||
snprintf(buf, buf_size, "%d%%", l);
|
snprintf(buf, buf_size, "%d", l);
|
||||||
*intval = l / 20 + 1;
|
*intval = l / 20 + 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue