summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 31b4de239f..0a33619cbf 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,
639 else 639 else
640 { 640 {
641 *intval = 6; 641 *intval = 6;
642 return "?%"; 642 return "?";
643 } 643 }
644 return buf; 644 return buf;
645 } 645 }
646 646
647 case 'v': /* battery voltage */
648 {
649 int v = battery_voltage();
650 if (v > -1)
651 {
652 snprintf(buf, buf_size, "%d.%02d", v/100, v%100);
653 return buf;
654 } else
655 return "?";
656 }
657
647 case 't': /* estimated battery time */ 658 case 't': /* estimated battery time */
648 { 659 {
649 int t = battery_time(); 660 int t = battery_time();