summaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-api.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-11-05 20:06:10 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-11-23 08:49:14 -0800
commitbae995056681cb75c05489a6e39337a4de0decd5 (patch)
treeb936040c7203f16d83269417bb5ea42a0c42d02f /binding/bluetooth-api.c
parent446fe8dcecf8fcdd3e559611ea67af6acb723974 (diff)
binding: bluetooth: add autoconnect feature
Attempt connection on each paired device till one is successful on startup. Bug-AGL: SPEC-1630 Change-Id: I213876f65528d0eaeaa5b55a745f541b286f26b5 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/bluetooth-api.c')
-rw-r--r--binding/bluetooth-api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binding/bluetooth-api.c b/binding/bluetooth-api.c
index 58ed636..5d26f3a 100644
--- a/binding/bluetooth-api.c
+++ b/binding/bluetooth-api.c
@@ -420,6 +420,8 @@ static struct bluetooth_state *bluetooth_init(GMainLoop *loop)
bluetooth_monitor_init();
+ g_timeout_add_seconds(5, bluetooth_autoconnect, ns);
+
return ns;
err_no_device_sub: