Browse Source

tests/bluetooth & bsim: Fix code compliance issues

Fix issues detected by checkpatch

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
pull/90277/head
Alberto Escolar Piedras 2 months ago committed by Benjamin Cabé
parent
commit
4d4f3728c9
  1. 3
      tests/bluetooth/gatt/src/main.c
  2. 3
      tests/bsim/bluetooth/host/gatt/ccc_store/src/peripheral.c

3
tests/bluetooth/gatt/src/main.c

@ -39,7 +39,8 @@ static void test1_ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t valu @@ -39,7 +39,8 @@ static void test1_ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t valu
nfy_enabled = (value == BT_GATT_CCC_NOTIFY) ? 1 : 0;
}
static ssize_t test1_ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr, uint16_t value)
static ssize_t test1_ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr,
uint16_t value)
{
return sizeof(value);
}

3
tests/bsim/bluetooth/host/gatt/ccc_store/src/peripheral.c

@ -54,7 +54,8 @@ static void ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t value) @@ -54,7 +54,8 @@ static void ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t value)
SET_FLAG(ccc_cfg_changed_flag);
}
static ssize_t ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr, uint16_t value)
static ssize_t ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr,
uint16_t value)
{
if (notif_write_allowed) {
LOG_INF("CCC Write Request accepted.");

Loading…
Cancel
Save