Fix Cordio Gatts descriptor configuring write permission

pull/9843/head
Desmond Chen 2019-02-26 11:30:57 +08:00
parent 15ccb32d31
commit 0143229bd0
1 changed files with 1 additions and 1 deletions

View File

@ -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: