From 0143229bd0c492ca2d56c2acccf96e04dbf15634 Mon Sep 17 00:00:00 2001 From: Desmond Chen Date: Tue, 26 Feb 2019 11:30:57 +0800 Subject: [PATCH] Fix Cordio Gatts descriptor configuring write permission --- .../targets/TARGET_CORDIO/source/CordioGattServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp index eac480d07f9..3491e771c90 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp @@ -467,7 +467,7 @@ ble_error_t GattServer::insert_descriptor( } // configure write permission - if (descriptor->isReadAllowed()) { + if (descriptor->isWriteAllowed()) { attribute_it->permissions |= ATTS_PERMIT_WRITE; switch (descriptor->getWriteSecurityRequirement().value()) { case att_security_requirement_t::NONE: