Verifies if the Link Loss service is enabled before writting the Link Loss Alert Level in the Proximity Reporter. --- proximity/monitor.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/proximity/monitor.c b/proximity/monitor.c index ba1982e..1bba4cd 100644 --- a/proximity/monitor.c +++ b/proximity/monitor.c @@ -159,7 +159,9 @@ static void attio_connected_cb(GAttrib *attrib, gpointer user_data) struct monitor *monitor = user_data; monitor->attrib = g_attrib_ref(attrib); - write_alert_level(monitor); + + if (monitor->enabled.linkloss) + write_alert_level(monitor); } static void attio_disconnected_cb(gpointer user_data) -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html