projects
/
platform
/
core
/
api
/
bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e63c2
)
[GATT] Fix to change write_type prop of charc
05/99005/1
author
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Mon, 21 Nov 2016 11:26:06 +0000
(16:56 +0530)
committer
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Mon, 21 Nov 2016 11:32:32 +0000
(17:02 +0530)
Update is not required if values are same
and vice-versa.
Change-Id: Ib6f35878e7d9483bd19c7e2eaa0c73e985d69ecd
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
src/bluetooth-gatt.c
patch
|
blob
|
history
diff --git
a/src/bluetooth-gatt.c
b/src/bluetooth-gatt.c
index f790f01fbcf9eaebf53ce3a720a2ab5fc7b0d66c..ad02ebb6b16f9e60ff69baed5ac1a15e85b39b23 100644
(file)
--- a/
src/bluetooth-gatt.c
+++ b/
src/bluetooth-gatt.c
@@
-2136,7
+2136,7
@@
int bt_gatt_characteristic_set_write_type(bt_gatt_h characteristic,
return BT_ERROR_NOT_SUPPORTED;
}
- if (
!
(chr->properties & property))
+ if ((chr->properties & property))
return BT_ERROR_NOT_SUPPORTED;
chr->write_type = write_type;