summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 0a33619..d33bd8c 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -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 */