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
|
@ -1632,7 +1632,7 @@ public:
|
||||||
*/
|
*/
|
||||||
GattAttribute *getDescriptor(uint8_t index)
|
GattAttribute *getDescriptor(uint8_t index)
|
||||||
{
|
{
|
||||||
if (index = _descriptorCount) {
|
if (index >= _descriptorCount) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue