summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps-common.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 37306fb..ca366a9 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -803,6 +803,20 @@ static char* get_tag(struct wps_data* wps_data,
return buf;
}
+ case 's': /* sleep timer */
+ {
+ if (get_sleep_timer() == 0)
+ {
+ return NULL;
+ }
+ else
+ {
+ gui_wps_format_time(buf, buf_size, \
+ get_sleep_timer() * 1000);
+ return buf;
+ }
+ }
+
#ifdef HAVE_CHARGING
case 'p': /* External power plugged in? */
{