X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Fsrc%2Fbt_le_adapter%2Ftizen%2Fcaleserver_vd.c;h=f1a5f6e9a18a8926581ec8f651af6a5fe4f02208;hb=014180e0d5f6689cc38916f8301934b3eaf373ae;hp=6a52aedbd064451d52809d59fe6cefc0dd0e5fd9;hpb=77b70b136cce2f58d89db4e3d2edb6d41d8a023c;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c old mode 100755 new mode 100644 index 6a52aedb..f1a5f6e --- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c +++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c @@ -859,10 +859,6 @@ CAResult_t CAAddNewCharacteristicsToGattServer(const bt_gatt_h svcPath, const ch if (read) { - g_gattReadCharPath = charPath; - } - else - { char desc_value[2] = {0, 0}; // Notification enabled. bt_gatt_h descriptor = NULL; permissions = BT_GATT_PERMISSION_READ | BT_GATT_PERMISSION_WRITE; @@ -887,6 +883,9 @@ CAResult_t CAAddNewCharacteristicsToGattServer(const bt_gatt_h svcPath, const ch CALEGetErrorMsg(ret)); return CA_STATUS_FAILED; } + g_gattReadCharPath = charPath; + } + else{ g_gattWriteCharPath = charPath; }