aboutsummaryrefslogtreecommitdiffstats
path: root/thermometer
diff options
context:
space:
mode:
authorChen Ganir <chen.ganir@ti.com>2012-03-26 09:35:59 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-26 12:18:00 +0300
commit1e064929b303cead29a85a108cbadfe93462c717 (patch)
tree6250f513bb94ef6e36df1ec290473969048a0dbc /thermometer
parent48c82115a2739881877fa857390ff2eca4dc73e0 (diff)
downloadbluez-1e064929b303cead29a85a108cbadfe93462c717.tar.gz
bluez-1e064929b303cead29a85a108cbadfe93462c717.tar.xz
bluez-1e064929b303cead29a85a108cbadfe93462c717.zip
GATT: Replace start/end with att_range
Use att_range struct instead of individual start/end handles in gatt_primary structure
Diffstat (limited to 'thermometer')
-rw-r--r--thermometer/thermometer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thermometer/thermometer.c b/thermometer/thermometer.c
index de4e647a..a64ed543 100644
--- a/thermometer/thermometer.c
+++ b/thermometer/thermometer.c
@@ -1220,8 +1220,8 @@ int thermometer_register(DBusConnection *connection, struct btd_device *device,
t->conn = dbus_connection_ref(connection);
t->dev = btd_device_ref(device);
t->svc_range = g_new0(struct att_range, 1);
- t->svc_range->start = tattr->start;
- t->svc_range->end = tattr->end;
+ t->svc_range->start = tattr->range.start;
+ t->svc_range->end = tattr->range.end;
if (!g_dbus_register_interface(t->conn, path, THERMOMETER_INTERFACE,
thermometer_methods, thermometer_signals,