summaryrefslogtreecommitdiff
path: root/profiles/proximity/monitor.c
diff options
context:
space:
mode:
authorJefferson Delfes <jefferson.delfes@openbossa.org>2012-09-28 16:34:44 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-01 12:54:51 +0300
commit3d0e48b33446567a7e02772bb84bd55c87073937 (patch)
tree0c744b7f508b5795c6208ff82b7e6296de78d45f /profiles/proximity/monitor.c
parent5e1174fb01bdb196efceb0f8bd801f262aeed4cd (diff)
downloadbluez-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/proximity/monitor.c')
-rw-r--r--profiles/proximity/monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profiles/proximity/monitor.c b/profiles/proximity/monitor.c
index a791916f2..6444a758e 100644
--- a/profiles/proximity/monitor.c
+++ b/profiles/proximity/monitor.c
@@ -250,7 +250,7 @@ static void tx_power_handle_cb(GSList *characteristics, guint8 status,
DBG("Tx Power handle: 0x%04x", monitor->txpowerhandle);
- gatt_read_char(monitor->attrib, monitor->txpowerhandle, 0,
+ gatt_read_char(monitor->attrib, monitor->txpowerhandle,
tx_power_read_cb, monitor);
}
@@ -260,7 +260,7 @@ static void read_tx_power(struct monitor *monitor)
bt_uuid_t uuid;
if (monitor->txpowerhandle != 0) {
- gatt_read_char(monitor->attrib, monitor->txpowerhandle, 0,
+ gatt_read_char(monitor->attrib, monitor->txpowerhandle,
tx_power_read_cb, monitor);
return;
}