From e1b1caba708101cdb1156ace22c40ad3e39696dd Mon Sep 17 00:00:00 2001 From: Gowtham Anandha Babu Date: Tue, 22 Nov 2016 01:49:53 -0800 Subject: [PATCH] This change is not required. C# TC needs to be changed. Revert "[GATT] Fix to change write_type prop of charc" This reverts commit 13d8aaeaf81732bd0504714c6da1dfb3235b05f7. Change-Id: I8977d95b21a24ffa46e337299a1553a285d31010 --- src/bluetooth-gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index ad02ebb..f790f01 100644 --- 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; -- 2.34.1