This change is not required. C# TC needs to be changed. 49/100349/1 accepted/tizen/3.0/common/20161129.103518 accepted/tizen/3.0/ivi/20161129.063611 accepted/tizen/3.0/mobile/20161129.063450 accepted/tizen/3.0/tv/20161129.063543 accepted/tizen/3.0/wearable/20161129.063601 submit/tizen_3.0/20161128.024738 submit/tizen_3.0/20161129.003837
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Tue, 22 Nov 2016 09:49:53 +0000 (01:49 -0800)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 28 Nov 2016 02:06:19 +0000 (11:06 +0900)
Revert "[GATT] Fix to change write_type prop of charc"

This reverts commit 13d8aaeaf81732bd0504714c6da1dfb3235b05f7.

Change-Id: I2e103c293e1c7ff1c5ab98db29e47e27122e2ca8

src/bluetooth-gatt.c

index ad02ebb6b16f9e60ff69baed5ac1a15e85b39b23..f790f01fbcf9eaebf53ce3a720a2ab5fc7b0d66c 100644 (file)
@@ -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;