Skip to content

Commit e6f85b5

Browse files
author
Rohit Grover
committed
minor rename of a class variable to help readability
1 parent 1d1a471 commit e6f85b5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

GattCharacteristic.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ class GattCharacteristic
306306
*
307307
* @param[in] uuid
308308
* The UUID to use for this characteristic
309+
* @param[in] valuePtr
310+
* The memory holding the initial value.
309311
* @param[in] initialLen
310312
* The min length in bytes of this characteristic's value
311313
* @param[in] maxLen
@@ -323,9 +325,9 @@ class GattCharacteristic
323325
* @endcode
324326
*/
325327
/**************************************************************************/
326-
GattCharacteristic(const UUID &uuid, uint8_t *value = NULL, uint16_t initialLen = 0, uint16_t maxLen = 0,
328+
GattCharacteristic(const UUID &uuid, uint8_t *valuePtr = NULL, uint16_t initialLen = 0, uint16_t maxLen = 0,
327329
uint8_t props = BLE_GATT_CHAR_PROPERTIES_NONE) :
328-
_uuid(uuid), _value(value), _initialLen(initialLen), _lenMax(maxLen), _handle(), _properties(props) {
330+
_uuid(uuid), _valuePtr(valuePtr), _initialLen(initialLen), _lenMax(maxLen), _handle(), _properties(props) {
329331
/* empty */
330332
}
331333

@@ -349,12 +351,12 @@ class GattCharacteristic
349351
return _lenMax;
350352
}
351353
uint8_t *getValuePtr(void) {
352-
return _value;
354+
return _valuePtr;
353355
}
354356

355357
private:
356358
UUID _uuid; /* Characteristic UUID */
357-
uint8_t *_value;
359+
uint8_t *_valuePtr;
358360
uint16_t _initialLen; /* Initial length of the value */
359361
uint16_t _lenMax; /* Maximum length of the value */
360362
uint16_t _handle;

0 commit comments

Comments
 (0)