mirror of https://github.com/ARMmbed/mbed-os.git
Merge branch 'fix_Cordio-descriptor-set-cback' of https://github.com/desmond-blue/mbed-os into rollup
commit
74f13dd8de
|
|
@ -488,6 +488,10 @@ ble_error_t GattServer::insert_descriptor(
|
||||||
#endif // BLE_FEATURE_SECURE_CONNECTIONS
|
#endif // BLE_FEATURE_SECURE_CONNECTIONS
|
||||||
#endif // BLE_FEATURE_SECURITY
|
#endif // BLE_FEATURE_SECURITY
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (properties & READ_PROPERTY) {
|
||||||
|
attribute_it->settings |= ATTS_SET_READ_CBACK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// configure write permission
|
// configure write permission
|
||||||
|
|
@ -517,6 +521,10 @@ ble_error_t GattServer::insert_descriptor(
|
||||||
#endif // BLE_FEATURE_SECURE_CONNECTIONS
|
#endif // BLE_FEATURE_SECURE_CONNECTIONS
|
||||||
#endif // BLE_FEATURE_SECURITY
|
#endif // BLE_FEATURE_SECURITY
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (properties & WRITABLE_PROPERTIES) {
|
||||||
|
attribute_it->settings |= ATTS_SET_WRITE_CBACK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_it++;
|
attribute_it++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue