From 03ad6c7fee3d829e1bb541a8d79891d83c00fff1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Kelleter?= Date: Tue, 1 Sep 2015 16:01:25 +0200 Subject: [PATCH] hotplug: add BUTTON to environment vars for timeout action MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit as done in pressed and released actions Signed-off-by: Günther Kelleter --- plug/hotplug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plug/hotplug.c b/plug/hotplug.c index 0c97e4d..b5ebd07 100644 --- a/plug/hotplug.c +++ b/plug/hotplug.c @@ -399,6 +399,7 @@ static void handle_button_timeout(struct uloop_timeout *t) b = container_of(t, struct button_timeout, timeout); blob_buf_init(&button_buf, 0); + blobmsg_add_string(&button_buf, "BUTTON", b->name); blobmsg_add_string(&button_buf, "ACTION", "timeout"); snprintf(seen, sizeof(seen), "%d", b->seen); blobmsg_add_string(&button_buf, "SEEN", seen); -- 2.25.1