summaryrefslogtreecommitdiff
path: root/samples/bluetooth/peripheral/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bluetooth/peripheral/src/main.c')
-rw-r--r--samples/bluetooth/peripheral/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/bluetooth/peripheral/src/main.c b/samples/bluetooth/peripheral/src/main.c
index f35e29c72..2834523b6 100644
--- a/samples/bluetooth/peripheral/src/main.c
+++ b/samples/bluetooth/peripheral/src/main.c
@@ -89,9 +89,9 @@ static void vnd_ccc_cfg_changed(uint16_t value)
}
static void indicate_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr,
- int err)
+ uint8_t err)
{
- printk("Indication %s\n", err < 0 ? "fail" : "success");
+ printk("Indication %s\n", err != 0 ? "fail" : "success");
indicating = 0;
}