diff options
author | Jefferson Delfes <jefferson.delfes@openbossa.org> | 2012-09-28 16:34:44 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-01 12:54:51 +0300 |
commit | 3d0e48b33446567a7e02772bb84bd55c87073937 (patch) | |
tree | 0c744b7f508b5795c6208ff82b7e6296de78d45f /profiles/thermometer | |
parent | 5e1174fb01bdb196efceb0f8bd801f262aeed4cd (diff) | |
download | bluez-3d0e48b33446567a7e02772bb84bd55c87073937.tar.gz |
gatt: Remove offset parameter from gatt_read_char
The Core spec allows to implement Read Long Characteristic Value as a
Read Request, followed by zero or more Read Blob Requests, therefore the
offset parameter is unnecessary and is always 0 for normal use.
Diffstat (limited to 'profiles/thermometer')
-rw-r--r-- | profiles/thermometer/thermometer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/profiles/thermometer/thermometer.c b/profiles/thermometer/thermometer.c index 77dcb2630..3506ba79a 100644 --- a/profiles/thermometer/thermometer.c +++ b/profiles/thermometer/thermometer.c @@ -393,8 +393,8 @@ static void process_thermometer_desc(struct descriptor *desc) if (bt_uuid_cmp(&desc->uuid, &btuuid) == 0 && g_strcmp0(ch->attr.uuid, MEASUREMENT_INTERVAL_UUID) == 0) { - gatt_read_char(ch->t->attrib, desc->handle, 0, - valid_range_desc_cb, desc); + gatt_read_char(ch->t->attrib, desc->handle, valid_range_desc_cb, + desc); return; } @@ -508,10 +508,10 @@ static void process_thermometer_char(struct characteristic *ch) change_property(ch->t, "Intermediate", &intermediate); return; } else if (g_strcmp0(ch->attr.uuid, TEMPERATURE_TYPE_UUID) == 0) - gatt_read_char(ch->t->attrib, ch->attr.value_handle, 0, + gatt_read_char(ch->t->attrib, ch->attr.value_handle, read_temp_type_cb, ch); else if (g_strcmp0(ch->attr.uuid, MEASUREMENT_INTERVAL_UUID) == 0) - gatt_read_char(ch->t->attrib, ch->attr.value_handle, 0, + gatt_read_char(ch->t->attrib, ch->attr.value_handle, read_interval_cb, ch); } |