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:
Brandon Low 2006-01-25 21:57:26 +00:00
parent e40900df01
commit 906bfb4c7e

View file

@ -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 */