apps/bttester: Fix subscribing for notifications/indications

PTS expects Write with response.
This commit is contained in:
Michał Narajowski
2019-03-25 12:08:21 +01:00
parent 4d5e0c75b0
commit e3dd6a27e8
+2 -4
View File
@@ -1667,10 +1667,8 @@ static int enable_subscription(u16_t conn_handle, u16_t ccc_handle,
op = (uint8_t) (value == 0x0001 ? GATT_CFG_NOTIFY :
GATT_CFG_INDICATE);
if (ble_gattc_write_no_rsp_flat(conn_handle,
ccc_handle,
&value,
sizeof(value))) {
if (ble_gattc_write_flat(conn_handle, ccc_handle,
&value, sizeof(value), NULL, NULL)) {
return -EINVAL;
}