Extends GetProperties method of the Proximity Monitor adding ImmediateAlertLevel property when Path Loss and/or Find Me is enabled --- proximity/monitor.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/proximity/monitor.c b/proximity/monitor.c index 537e389..7e28b39 100644 --- a/proximity/monitor.c +++ b/proximity/monitor.c @@ -258,6 +258,10 @@ static DBusMessage *get_properties(DBusConnection *conn, dict_append_entry(&dict, "LinkLossAlertLevel", DBUS_TYPE_STRING, &monitor->linklosslevel); + if (monitor->enabled.findme || monitor->enabled.pathloss) + dict_append_entry(&dict, "ImmediateAlertLevel", + DBUS_TYPE_STRING, &monitor->linklosslevel); + dbus_message_iter_close_container(&iter, &dict); return reply; -- 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