summaryrefslogtreecommitdiff
path: root/samples/bluetooth/peripheral_csc/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bluetooth/peripheral_csc/src/main.c')
-rw-r--r--samples/bluetooth/peripheral_csc/src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/samples/bluetooth/peripheral_csc/src/main.c b/samples/bluetooth/peripheral_csc/src/main.c
index eeaa28055..04f985f67 100644
--- a/samples/bluetooth/peripheral_csc/src/main.c
+++ b/samples/bluetooth/peripheral_csc/src/main.c
@@ -238,12 +238,11 @@ static int write_ctrl_point(struct bt_conn *conn,
int i;
if (!ctrl_point_configured) {
- /* TODO: Return CSC_ERR_CCC_CONFIG */
- return -EINVAL;
+ return BT_GATT_ERR(CSC_ERR_CCC_CONFIG);
}
if (!len) {
- return -EINVAL;
+ return BT_GATT_ERR(BT_ATT_ERR_INVALID_ATTRIBUTE_LEN);
}
switch (req->op) {