From c4857dca3887758c19303ba82c2489a0b0b0e600 Mon Sep 17 00:00:00 2001 From: XiaoYao Date: Wed, 2 Mar 2022 16:01:24 +0800 Subject: [PATCH 1/1] default enable power for adapter --- plugins/policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/policy.c b/plugins/policy.c index 051db82..f8c8d7a 100644 --- a/plugins/policy.c +++ b/plugins/policy.c @@ -58,7 +58,7 @@ static const char *default_reconnect[] = { A2DP_SINK_UUID, NULL }; static char **reconnect_uuids = NULL; -static const size_t default_attempts = 7; +static const size_t default_attempts = 1; static size_t reconnect_attempts = 0; static const int default_intervals[] = { 1, 2, 4, 8, 16, 32, 64 }; @@ -73,7 +73,7 @@ static GSList *reconnects = NULL; static unsigned int service_id = 0; static GSList *devices = NULL; -static bool auto_enable = false; +static bool auto_enable = true; struct policy_data { struct btd_device *dev; -- 2.17.1