diff options
-rw-r--r-- | apps/gui/gwps-common.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 0a33619cbf..d33bd8ccac 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, | |||
646 | 646 | ||
647 | case 'v': /* battery voltage */ | 647 | case 'v': /* battery voltage */ |
648 | { | 648 | { |
649 | int v = battery_voltage(); | 649 | unsigned int v = battery_voltage(); |
650 | if (v > -1) | 650 | snprintf(buf, buf_size, "%d.%02d", v/100, v%100); |
651 | { | 651 | return buf; |
652 | snprintf(buf, buf_size, "%d.%02d", v/100, v%100); | ||
653 | return buf; | ||
654 | } else | ||
655 | return "?"; | ||
656 | } | 652 | } |
657 | 653 | ||
658 | case 't': /* estimated battery time */ | 654 | case 't': /* estimated battery time */ |