mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #5593 from pan-/ble-fix-equality-comparison
BLE: Fix greater than or equal to comparision in GattCharacteristic.pull/5586/merge
commit
0ef3ca7f19
|
@ -85,7 +85,7 @@
|
|||
* A characteristic is a typed value used in a service. It contains a set of
|
||||
* properties that define client operations supported by the characteristic.
|
||||
* A characteristic may also include descriptors; a descriptor exposes
|
||||
* metainformation associated to a characteristic, such as the unit of its value,
|
||||
* metainformation associated to a characteristic, such as the unit of its value,
|
||||
* its human readable name or a control point attribute that allows the client to
|
||||
* subscribe to the characteristic notifications.
|
||||
*
|
||||
|
@ -1632,7 +1632,7 @@ public:
|
|||
*/
|
||||
GattAttribute *getDescriptor(uint8_t index)
|
||||
{
|
||||
if (index = _descriptorCount) {
|
||||
if (index >= _descriptorCount) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue