diff options
| -rw-r--r-- | apps/gui/gwps-common.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 31b4de2..0a33619 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -639,11 +639,22 @@ static char* get_tag(struct wps_data* wps_data, else { *intval = 6; - return "?%"; + return "?"; } return buf; } + 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 "?"; + } + case 't': /* estimated battery time */ { int t = battery_time(); |