Diff between eb978586c3973e95f8c289407b4bf84d113545b6 and 0a080597220a1233edd71601682263b3faa931dc

Changed Files

File Additions Deletions Status
src/main.c +2 -1 modified

Full Patch

diff --git a/src/main.c b/src/main.c
index f49f29c..4e2c424 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;
 }