It's unsigned, no need to check for negativity
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8455 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e40900df01
commit
906bfb4c7e
1 changed files with 3 additions and 7 deletions
|
@ -646,13 +646,9 @@ static char* get_tag(struct wps_data* wps_data,
|
|||
|
||||
case 'v': /* battery voltage */
|
||||
{
|
||||
int v = battery_voltage();
|
||||
if (v > -1)
|
||||
{
|
||||
snprintf(buf, buf_size, "%d.%02d", v/100, v%100);
|
||||
return buf;
|
||||
} else
|
||||
return "?";
|
||||
unsigned int v = battery_voltage();
|
||||
snprintf(buf, buf_size, "%d.%02d", v/100, v%100);
|
||||
return buf;
|
||||
}
|
||||
|
||||
case 't': /* estimated battery time */
|
||||
|
|
Loading…
Reference in a new issue