No changes

Fork of nRF51822 by Nordic Semiconductor

Revision:
82:6c51cbe4bc12
Parent:
66:b3680699d9a4
Child:
83:71302acf1804
--- a/btle/custom/custom_helper.cpp	Thu Dec 11 12:07:13 2014 +0000
+++ b/btle/custom/custom_helper.cpp	Fri Dec 12 13:23:17 2014 +0000
@@ -189,6 +189,7 @@
                                      uint8_t    *p_data,
                                      uint16_t    min_length,
                                      uint16_t    max_length,
+                                     bool        writeAuthorization,
                                      ble_gatts_char_handles_t *p_char_handle)
 {
     /* Characteristic metadata */
@@ -212,7 +213,7 @@
         (char_props.notify || char_props.indicate) ? &cccd_md : NULL;
 
     /* Attribute declaration */
-    ble_gatts_attr_md_t attr_md = {0};
+    ble_gatts_attr_md_t attr_md = {.wr_auth = writeAuthorization};
 
     attr_md.vloc = BLE_GATTS_VLOC_STACK;
     attr_md.vlen = (min_length == max_length) ? 0 : 1;
@@ -289,4 +290,4 @@
                                                 p_desc_handle));
 
     return ERROR_NONE;
-}
+}
\ No newline at end of file