Clément Bertolini / BLE_API

Fork of BLE_API by Bluetooth Low Energy

Revision:
51:0329477be5e2
Parent:
34:da2ea8cd6216
Child:
52:62b9d3b7a689
diff -r 9078969e80e4 -r 0329477be5e2 GattCharacteristic.cpp
--- a/GattCharacteristic.cpp	Wed May 28 15:25:55 2014 +0100
+++ b/GattCharacteristic.cpp	Wed May 28 16:52:09 2014 +0100
@@ -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 */
 }
 
 /**************************************************************************/