mirror of https://github.com/ARMmbed/mbed-os.git
no read callback for CCC
parent
de2743b702
commit
eda064563c
|
@ -510,7 +510,7 @@ ble_error_t GattServer::insert_descriptor(
|
|||
#endif // BLE_FEATURE_SECURITY
|
||||
}
|
||||
|
||||
if (properties & READ_PROPERTY) {
|
||||
if (properties & READ_PROPERTY && !(attribute_it->settings & ATTS_SET_CCC)) {
|
||||
attribute_it->settings |= ATTS_SET_READ_CBACK;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue