summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2014-03-25 13:53:01 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-03-25 14:05:28 +0100
commit22a0f404fd1c49d61a553b694fa0ed7c48f016a1 (patch)
tree286760afc578be76dd30ebdcc865e5ac098c84b2
parent58e3ca95d2cd6e3917ec57378c874465f4f70a68 (diff)
downloadbluez-22a0f404fd1c49d61a553b694fa0ed7c48f016a1.tar.gz
android/hal-gatt: Fix sending get characteristic cmd
-rw-r--r--android/hal-gatt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 8a8ce9c09..51caf8dff 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -646,7 +646,7 @@ static bt_status_t get_characteristic(int conn_id, btgatt_srvc_id_t *srvc_id,
cmd->conn_id = conn_id;
srvc_id_to_hal(&cmd->srvc_id, srvc_id);
- len += sizeof(cmd->srvc_id);
+ cmd->number = 0;
if (start_char_id) {
gatt_id_to_hal(&cmd->gatt_id[0], start_char_id);