Thread (3 messages) flat view 3 messages, 2 authors, 2011-09-27
STALE5471d

[PATCH BlueZ 1/2] Write Link Loss Alert level if connected

From: Claudio Takahasi <hidden>
Date: 2011-08-09 16:47:43
Subsystem: the rest · Maintainer: Linus Torvalds

When SetProperty gets called for LinkLossAlertLevel, the alert level
can be written in the remote is the link is up.
---
 proximity/monitor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/proximity/monitor.c b/proximity/monitor.c
index 55d3985..c32ddec 100644
--- a/proximity/monitor.c
+++ b/proximity/monitor.c
@@ -396,6 +396,9 @@ static DBusMessage *set_link_loss_alert(DBusConnection *conn, DBusMessage *msg,
 				PROXIMITY_INTERFACE, "LinkLossAlertLevel",
 				DBUS_TYPE_STRING, &monitor->linklosslevel);
 
+	if (monitor->attrib)
+		write_alert_level(monitor);
+
 	return dbus_message_new_method_return(msg);
 }
 
-- 
1.7.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help