Skip to content

Commit a5c7f84

Browse files
committed
Correct incorrect read permissions for non-writable characteristics
1 parent c692433 commit a5c7f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/CurieBle/src/BLECharacteristic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ BLECharacteristic::add(uint16_t serviceHandle)
176176
if (_properties & (BLEWriteWithoutResponse | BLEWrite)) {
177177
char_data.perms.wr = GAP_SEC_MODE_1 | GAP_SEC_LEVEL_1;
178178
} else {
179-
char_data.perms.rd = GAP_SEC_NO_PERMISSION;
179+
char_data.perms.wr = GAP_SEC_NO_PERMISSION;
180180
}
181181

182182
char_data.init_len = _value_length;

0 commit comments

Comments
 (0)