use initializer list in the constructor for GattCharacteristic

This commit is contained in:
Rohit Grover 2014-05-28 16:52:09 +01:00
parent efee45e600
commit 73e104a011
1 changed files with 7 additions and 6 deletions

View File

@ -49,13 +49,14 @@
GattCharacteristic::GattCharacteristic(uint16_t id,
uint16_t minLen,
uint16_t maxLen,
uint8_t props)
uint8_t props) :
uuid(id),
lenMin(minLen),
lenMax(maxLen),
handle(),
properties(props)
{
uuid = id;
memcpy(&properties, &props, 1);
lenMin = minLen;
lenMax = maxLen;
// handle = 0;
/* empty */
}
/**************************************************************************/