From 0a080597220a1233edd71601682263b3faa931dc Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 12 Jul 2018 20:01:13 +0300 Subject: [PATCH] core: Set GATT.Cache default in init_defaults --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index f49f29c4c..4e2c4248e 100644 --- a/src/main.c +++ b/src/main.c @@ -403,8 +403,8 @@ static void parse_config(GKeyFile *config) str = g_key_file_get_string(config, "GATT", "Cache", &err); if (err) { + DBG("%s", err->message); g_clear_error(&err); - main_opts.gatt_cache = BT_GATT_CACHE_ALWAYS; } else { main_opts.gatt_cache = parse_gatt_cache(str); g_free(str); @@ -456,6 +456,7 @@ static void init_defaults(void) main_opts.did_product = 0x0246; /* BlueZ */ main_opts.did_version = (major << 8 | minor); + main_opts.gatt_cache = BT_GATT_CACHE_ALWAYS; main_opts.gatt_mtu = BT_ATT_MAX_LE_MTU; } -- 2.47.3