File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 85
85
* A characteristic is a typed value used in a service. It contains a set of
86
86
* properties that define client operations supported by the characteristic.
87
87
* A characteristic may also include descriptors; a descriptor exposes
88
- * metainformation associated to a characteristic, such as the unit of its value,
88
+ * metainformation associated to a characteristic, such as the unit of its value,
89
89
* its human readable name or a control point attribute that allows the client to
90
90
* subscribe to the characteristic notifications.
91
91
*
@@ -1632,7 +1632,7 @@ class GattCharacteristic {
1632
1632
*/
1633
1633
GattAttribute *getDescriptor (uint8_t index)
1634
1634
{
1635
- if (index = _descriptorCount) {
1635
+ if (index > = _descriptorCount) {
1636
1636
return NULL ;
1637
1637
}
1638
1638
You can’t perform that action at this time.
0 commit comments