Set write permission for 'write without response' characteristics.

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
marcuschang
Date:
Fri Dec 12 17:12:35 2014 +0000
Parent:
84:658e5ec772a1
Commit message:
Write permission was not set for 'write without response' characteristics.

Changed in this revision

btle/custom/custom_helper.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/btle/custom/custom_helper.cpp	Fri Dec 12 14:15:16 2014 +0000
+++ b/btle/custom/custom_helper.cpp	Fri Dec 12 17:12:35 2014 +0000
@@ -226,7 +226,7 @@
         BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.read_perm);
     }
 
-    if (char_props.write) {
+    if (char_props.write || char_props.write_wo_resp) {
         BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);
     }